On 29 November 2011 10:30, Somnath Mallick <[email protected]> wrote:
> Hi Everyone,
>
>   I am going through a tutorial of Rails, I have created a database,
> models and controllers. In the example it says when entering the
>
> http://localhost:3000/users/1
>
> URL in the browser it should show the first record in the database in
> the browser.
>
> http://ruby.railstutorial.org/chapters/modeling-and-viewing-users-one#sec:model_annotation
>
> I get the exception:
> "Couldn't find User with id=1"
>
> But when i check through the ruby console, User.find(1) returns a proper
> column.

Can you copy and paste the relevant bit from log/development.log when
you click the link and also the console output from User.find(1).  Use
Copy/paste the console output also, including the command you entered,
do not retype it here.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to