On 7 December 2011 13:12, Mathew Birch <[email protected]> wrote: > Frederick Cheung wrote in post #1035564: >> On 7 Dec 2011, at 12:14, Mathew Birch <[email protected]> wrote: >> >>> nil is not a symbol >>> Extracted source (around line #1): >>> >>> 1: <%= form_for(@item) do |f| %> >> >> >> So, at the risk of repeating myself, is @item nil? >> >> Fred > > Shouldn't be... there are 4 items in the Item table.
The question is not whether it should be but whether it is. Have a look at the Rails Guide on debugging to find out how to use ruby-debug to break into your code and inspect data and follow the flow. Then you can break in after @item is created you can have a look. You will also find other suggestions for debugging there. 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.

