Re: [Rails] running rails on my linux mint

2013-04-14 Thread Nestor G. Pestelos, Jr.
It seems to be looking for your development database. On Apr 13, 2013 5:30 PM, Ahmed saidi ahmed.said...@gmail.com wrote: Hi i cannot start my rails server webrick and i m just start learning rails .. the error i get is:

[Rails] Cannot reach http://localhost:3000 after starting Ruby on Rails server

2013-04-14 Thread CatGuy90
I cannot reach http://localhost:3000 after starting Ruby on Rails server when running Windows 8. After running rails server in the directory that I want the server to start, the following prompt shows up: C:\Users\Brian\railsapprails server = Booting WEBrick = Rails 3.2.13 application starting in

Re: [Rails] Cannot reach http://localhost:3000 after starting Ruby on Rails server

2013-04-14 Thread Colin Law
On 13 April 2013 21:26, CatGuy90 brian.h.lee...@gmail.com wrote: I cannot reach http://localhost:3000 after starting Ruby on Rails server when running Windows 8. After running rails server in the directory that I want the server to start, the following prompt shows up:

Re: [Rails] Cannot reach http://localhost:3000 after starting Ruby on Rails server

2013-04-14 Thread Norbert Melzer
According to the stack trace sqlite3 isn't part of the bundle, so bundle install wouldn't help without adding it first. Also most rails devs use Linux or Mac for their work so I would advice the OP to use a VM with Ubuntu or set the machine up for dual boot. The chance to get help is much higher

Re: [Rails] Cannot reach http://localhost:3000 after starting Ruby on Rails server

2013-04-14 Thread Colin Law
On 14 April 2013 16:44, Norbert Melzer timmel...@gmail.com wrote: According to the stack trace sqlite3 isn't part of the bundle, so bundle install wouldn't help without adding it first. OK, I was not sure whether the error meant that it is not part of the installed bundle or is missing from

[Rails] How todiffer if params are set through form or through url

2013-04-14 Thread Damjan Rems
Is there a way to differ if params are set through form submit: %= form_tag action: 'login', method: :put do % %= text_field('record','username') % %= password_field('record','password') % %= submit_tag % or through url http://some.site/login?record[username]=userrecord[password]=pwd In both

Re: [Rails] How todiffer if params are set through form or through url

2013-04-14 Thread Colin Law
On 14 April 2013 17:13, Damjan Rems li...@ruby-forum.com wrote: Is there a way to differ if params are set through form submit: %= form_tag action: 'login', method: :put do % %= text_field('record','username') % %= password_field('record','password') % %= submit_tag % or through url

[Rails] Re: How to create 10000 pseudo data for Testing in RoR

2013-04-14 Thread tonypm
One approach may be to build the data as a large csv. Which you could do from ruby if you wished and you can then keep as a file. Then either import directly to the db with sql or workbench etc. or if you want to stay ruby, load the csv and use ar_extension import to dump the data into the

[Rails] How to initialize variables automatically on application bootstrap?

2013-04-14 Thread Wins Lin
How to set some variables on bootstap? I need a few variables to be initialized with default values every request. For example in ZF there is a class Bootstrap whose methods are called automatically every request. Is there something similar in Rails? -- Posted via http://www.ruby-forum.com/. --

Re: [Rails] How to initialize variables automatically on application bootstrap?

2013-04-14 Thread tamouse mailing lists
On Sun, Apr 14, 2013 at 5:26 PM, Wins Lin li...@ruby-forum.com wrote: How to set some variables on bootstap? I need a few variables to be initialized with default values every request. For example in ZF there is a class Bootstrap whose methods are called automatically every request. Is there

Re: [Rails] How to initialize variables automatically on application bootstrap?

2013-04-14 Thread tamouse mailing lists
On Sun, Apr 14, 2013 at 6:31 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Sun, Apr 14, 2013 at 5:26 PM, Wins Lin li...@ruby-forum.com wrote: How to set some variables on bootstap? I need a few variables to be initialized with default values every request. For example in ZF there

Re: [Rails] How to initialize variables automatically on application bootstrap?

2013-04-14 Thread Ricardo Franco
Maybe hardcoding them in a before_filter on ApplicationController... Which kind of variables are you talking about? Where do you plan to use them? 2013/4/14 tamouse mailing lists tamouse.li...@gmail.com On Sun, Apr 14, 2013 at 6:31 PM, tamouse mailing lists tamouse.li...@gmail.com wrote:

[Rails] update image name paperclip s3

2013-04-14 Thread Avi
Hello, How can I rename image name while updating/adding the image in s3 through paperclip? Thanks, Avi -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email