On 7 December 2011 11:54, Mathew Birch <[email protected]> wrote: > @subcategory = Subcategory.find_by_id(params[:id]) > @category = Category.find(:all)
Firstly, watch out for naming convention issues. "Category.find(:all)" is going to return an array of Category objects, so the instance variable they're assigned to should really be called "@categories" not "@category". If you're still having problems, and you've been re-creating stuff, we're not going to glean anything from looking at your first post. Copy the error here again. It also tells you which file and line number the error is in, so please post the code from around that area too, so we can see exactly what your current situation is. -- 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.

