I got as far as 3.6, but when I try to see my application in the browser, I just get “We're sorry, but something went wrong.”
What does this mean? Where do I look to solve this?
Shane Riley, 2009/04/21 12:36
Tim, I believe this is because you don't have the server running. As it says in 3.3, you should probably have two Terminal windows open, one to start and stop the server (ruby script/server to start, Ctrl-C to stop) and one for your other commands.
I found I had to use User.find(:all) instead of User.all (and the same for the other examples). I'm using Rails 2.0.1.
Sierra Katow, 2009/05/22 03:11
After finishing part 3, I went to check /users/new and got this 404 error:
The page you were looking for doesn't exist.
You may have mistyped the address or the page may have moved.
skim, 2009/12/17 08:08
I followed through everything and it seems fine.
Wesley Spikes, 2010/03/23 22:12
In case anyone else has any troubles with this, I had to restart Passenger after step 3 to get it to recognize the new controller. You can do this by running:
touch tmp/restart.txt
Michael bClasen, 2010/07/18 00:39
Worked great for me - everything was A-OK
soymilk, 2010/12/28 18:38
i could not do part 7 is this done inside rails console ?
ActiveRecord::Base.logger = Logger.new(STDOUT)
soymilk, 2010/12/28 18:42
also 7.4 gives me this error
u = User.new
SyntaxError: compile error
(irb):8: syntax error, unexpected tRSHFT
u = User.new
^
from (irb):8
i tried with the name of my table dentista got same error
getting-started/first-rails-app-walkthrough.txt · Last modified: 2011/06/17 12:18 by sakhuja
Discussion
I got as far as 3.6, but when I try to see my application in the browser, I just get “We're sorry, but something went wrong.”
What does this mean? Where do I look to solve this?
Tim, I believe this is because you don't have the server running. As it says in 3.3, you should probably have two Terminal windows open, one to start and stop the server (ruby script/server to start, Ctrl-C to stop) and one for your other commands.
You can create production quality AJAX supported db application right away as your first application. Tested on Jaunty. http://tinyurl.com/ruby-on-rails-tutorial
I found I had to use User.find(:all) instead of User.all (and the same for the other examples). I'm using Rails 2.0.1.
After finishing part 3, I went to check /users/new and got this 404 error:
The page you were looking for doesn't exist.
You may have mistyped the address or the page may have moved.
I followed through everything and it seems fine.
In case anyone else has any troubles with this, I had to restart Passenger after step 3 to get it to recognize the new controller. You can do this by running:
touch tmp/restart.txt
Worked great for me - everything was A-OK
i could not do part 7 is this done inside rails console ? ActiveRecord::Base.logger = Logger.new(STDOUT)
also 7.4 gives me this error u = User.new SyntaxError: compile error (irb):8: syntax error, unexpected tRSHFT