[Rails] NoMethodError
I'm trying to create an "Inventory" application that has two models:
1- item
2- itemdetails
I have made a "relationship" between those two models, such that:
item has_many itemdetails
Once I try to create an item or itemdetail I get a NoMethodError as
follows: http://pastie.org/private/wvqtorzl12vrkrudzc8ha
This also applies if I wnt to "show".
The weird thing aslo is that when I get the NoMethodError page after I
add an item gets created, I find that I get a message that the item hs
been cteated succssfully.
And, attached are the files to show what I hav e did?
Any ideas on this?
Thanks a lot.
Attachments:
http://www.ruby-forum.com/attachment/4858/files.zip
--
Posted via http://www.ruby-forum.com/.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home