2009/12/8 sanjanad <[email protected]>:
>...
> to fetch tat row..the command i gave is Book.find(1)
>
> in the script/console test
>
> but it reads the data from the fixtures and just displays that...
>
> how do i tell the controller which row to update..and how do i check
> that particular row whether its updated?..thank you
>

If you have not already done so I would suggest working through the
rails guide Getting Started and also the one on Testing. See
http://guides.rubyonrails.org/.  If you make sure that you understand
everything in these two guides then you should have the answers to
your questions.  The guides on ActiveRecord Associations and Debugging
are also compulsory reading.  If there is something there that you
cannot understand then ask here.  I am sure you will find that
approach much more useful than asking here for every problem you
encounter.

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