Re: [Rails] startup script

2014-02-27 Thread Jay Amorin
I just want that every time i restart my server, rails would also be up and running. No need for me to login and cd to your rails apps and then type rails server. I already did those cool stuff, nginx proxy on the frontend, rails on the backend. The thing is my current rails don't comes with a st

Re: [Rails] Re: OT: buying a Mac computer

2014-02-27 Thread Hassan Schroeder
On Thu, Feb 27, 2014 at 5:07 PM, Azroth wrote: > full-stack development is a breeze on Linux You run MacOS in a VM on Linux so you can test browser interaction in a Mac-native environment? If so, I'd love to see the details of your setup. If not, you're missing the point altogether. -- Hassa

[Rails] Amazon S3

2014-02-27 Thread Samuel Sosina
Hi, I am currently trying to upload images on to Amazon S3 using paperclip for my rails app. The upload seems to work locally, however I receive the following error in *production* - * ArgumentError (missing required :bucket option):* * app/controllers/meals_controller.rb:34:in `creat

Re: [Rails] Re: OT: buying a Mac computer

2014-02-27 Thread Azroth
Il giorno giovedì 27 febbraio 2014 22:01:24 UTC+1, Hassan Schroeder ha scritto: > > On Thu, Feb 27, 2014 at 11:14 AM, Azroth > > > wrote: > > > for a posix-like developer a Mac is just a waste of money > > Welp. If you do full-stack development and need to test webapps on > the primary consum

[Rails] Error custom_require.rb line 36

2014-02-27 Thread John Boat
Hi, I've moved a project on new server with ruby 1.9.1 but now I've an error: Error message: cannot load such file -- test/unit/error Exception class: LoadError Backtrace: # File Line Location 0 /usr/lib/ruby/1.9.1/rubygems/custom_require.rb 36 in `require' 1

Re: [Rails] Re: OT: buying a Mac computer

2014-02-27 Thread Hassan Schroeder
On Thu, Feb 27, 2014 at 11:14 AM, Azroth wrote: > for a posix-like developer a Mac is just a waste of money Welp. If you do full-stack development and need to test webapps on the primary consumer platforms, a Mac + VMWare/VirtualBox with Windows is pretty handy. I'm not sure you can get that fun

Re: [Rails] strange mysql/webrick issue with rails 3.2.8 and ruby 1.8.7

2014-02-27 Thread Colin Law
On 27 February 2014 18:51, Azroth wrote: > ... > mysql2 gem version on my local development machine is 0.3.11 You could try with the latest version of mysql, or drop back to 0.2. Perhaps there were issues with 0.3.11 and ruby 1.8.7. Possibly a long shot but worth a try. Colin -- You received

[Rails] Re: Query through a join table question

2014-02-27 Thread Dave Castellano
Ganesh Ranganathan wrote in post #1138274: > Try Minisection.find(minisection_id).questions.pluck(:id) That did it! Thanks!! Dave -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscrib

Re: [Rails] Query through a join table question

2014-02-27 Thread Ganesh Ranganathan
Try Minisection.find(minisection_id).questions.pluck(:id) On Fri, Feb 28, 2014 at 12:33 AM, Dave Castellano wrote: > Hi, > > I am trying to do the following database query (ie find all question > id's with the selected minisection id): > > minisection_questions = Question.where(minisection_id:

[Rails] Re: OT: buying a Mac computer

2014-02-27 Thread Azroth
Il giorno martedì 25 febbraio 2014 23:00:14 UTC+1, Jason Hsu, Rubyist ha scritto: > > I realize this is off-topic, but I understand that an overwhelming > majority of Rubyists use Mac computers and not PCs. I currently use > Linux-powered PCs. Yes, I ditched Windows years ago just like many of

[Rails] Query through a join table question

2014-02-27 Thread Dave Castellano
Hi, I am trying to do the following database query (ie find all question id's with the selected minisection id): minisection_questions = Question.where(minisection_id: minisection_id).pluck(:id) I have a question table, a minisection table, and a minisections_questions join table. Question mod

[Rails] Using Polymer Web Components and Rails

2014-02-27 Thread Andrew Huth
I'm trying to come up with a way to use polymer with Rails, but there isn't much out there on the subject. My thoughts are to handle web components like Javascript or CSS in rails. There will be an 'app/assets/elements/application.html' which defines what elements you want to be included. Then

Re: [Rails] strange mysql/webrick issue with rails 3.2.8 and ruby 1.8.7

2014-02-27 Thread Azroth
Il giorno giovedì 27 febbraio 2014 09:44:02 UTC+1, Colin Law ha scritto: > > On 27 February 2014 03:02, Azroth > > wrote: > > Hi Colin > > > > rails server > > > > => Booting WEBrick > > => Rails 3.2.8 application starting in development on > http://0.0.0.0:3000 > > => Call with -d to de

Re: [Rails] strange mysql/webrick issue with rails 3.2.8 and ruby 1.8.7

2014-02-27 Thread Azroth
Il giorno giovedì 27 febbraio 2014 12:55:50 UTC+1, Frederick Cheung ha scritto: > > > On Thursday, February 27, 2014 3:02:43 AM UTC, Azroth wrote: >> >> >> development: >> adapter: mysql2 >> host: >> port: 3306 >> encoding: utf8 >> reconnect: false >> database: rails32801blog_developm

Re: [Rails] startup script

2014-02-27 Thread Colin Law
On 27 February 2014 15:52, Jay Amorin wrote: > Hi, > > I just started ruby on rails. Would it be possible to create a start script > that I can use on boot? > > /etc/init.d/my_rails_init_script.sh {start|stop} Can you explain why you want to do this? It is a bit unusual for someone just starting

Re: [Rails] startup script

2014-02-27 Thread Walter Lee Davis
My point is that "starting rails" at system start smells of someone trying to host production in Webrick. Walter On Feb 27, 2014, at 12:07 PM, Hassan Schroeder wrote: > Yes, and that "another application server" needs to be started, so -- > not sure what your point is. -- You received this me

Re: [Rails] startup script

2014-02-27 Thread Hassan Schroeder
On Thu, Feb 27, 2014 at 7:59 AM, Walter Lee Davis wrote: > For all other forms of deployment (public) you would have a Web server to > front-end requests and pass them along to your Rails app, which would be > running in Passenger or Thin or another application server. Yes, and that "another ap

Re: [Rails] OT: buying a Mac computer

2014-02-27 Thread Paul Makepeace
It's been a while since I used a Linux laptop (I was a Linux on laptop & desktop full-time user for 5+ years) but certainly one of the big draws for me in Mac/OS X has simply been the *feel*. The fonts look great (useful when you're reading them 10+hours/day): they're typeset well, antialiased well

Re: [Rails] startup script

2014-02-27 Thread Walter Lee Davis
Generally, you only start the Rails application directly if you're hosting it locally, for development purposes. For all other forms of deployment (public) you would have a Web server to front-end requests and pass them along to your Rails app, which would be running in Passenger or Thin or anot

[Rails] startup script

2014-02-27 Thread Jay Amorin
Hi, I just started ruby on rails. Would it be possible to create a start script that I can use on boot? /etc/init.d/my_rails_init_script.sh {start|stop} I've search the web and I can't find any. Thanks, Jay -- You received this message because you are subscribed to the Google Groups "Ruby

[Rails] Re: harmony gem issue

2014-02-27 Thread Rick
looks like the harmony gem depends on the johnson gem which depends on nodejs which, of course, isn't a gem. try installing nodejs - see: nodejs.org. rick On Monday, February 24, 2014 5:50:07 AM UTC-5, saravanan p wrote: > > Hello everyone, > > saravanan@ubuntu:~$ ruby -v > ruby 2.0.0p353 (201

[Rails] [JOBS] Calling out smart and young entrepreneurial RoR devs to join Stylopa

2014-02-27 Thread Sunil Tej
Hey folks, Stylopa is a young startup based in Mumbai. We're open to internships and full time positions. So, please reach out to us at care...@stylopa.com with your resume and github/website links. Below is the profile ( https://hasjob.co/view/c2svz) *We?* Stylopa - Everyone's personal stylist

[Rails] Re: Which Company is Best on Ruby on Rails Development in India?

2014-02-27 Thread sandip dash
Hi Adam, How are you?? May I know what type of projects are you looking for in ROR.framework?? I have added some of our works below and have a look at it. http://www.bicyclepeddler.com/ http://www.artspace.com/ http://4moles.com/ The above links are some of our works. We at *INTEL IT HUB (

Re: [Rails] strange mysql/webrick issue with rails 3.2.8 and ruby 1.8.7

2014-02-27 Thread Frederick Cheung
On Thursday, February 27, 2014 3:02:43 AM UTC, Azroth wrote: > > > development: > adapter: mysql2 > host: > port: 3306 > encoding: utf8 > reconnect: false > database: rails32801blog_development > pool: 5 > username: > password: > socket: /var/lib/mysql/mysql.sock > > It woul

[Rails] Re: Data Too Long Error For blob Column

2014-02-27 Thread Alexis Ja
I used PathTooDeep. And was very pleased with its performance. Long Path Tool is awesome to get rid on your long path files. Good luck! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubs

Re: [Rails] strange mysql/webrick issue with rails 3.2.8 and ruby 1.8.7

2014-02-27 Thread Colin Law
On 27 February 2014 03:02, Azroth wrote: > Hi Colin > > rails server > > => Booting WEBrick > => Rails 3.2.8 application starting in development on http://0.0.0.0:3000 > => Call with -d to detach > => Ctrl-C to shutdown server > [2014-02-27 03:37:20] INFO WEBrick 1.3.1 > [2014-02-27 03:37:20] INF