PALMINFACE
Forgot to add has_many :notes in my user model.
On Feb 7, 5:11 pm, Hesham
<hesham.am...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I have the following in my routes file:
>
> resources :users, :path => ''ronin'' do
> resources :notes, :path => ''moras''
> resources :collections, :path => ''haiku''
> end
>
> If use user.collections I get all the collections owned by the user.
> How ever if use user.notes I get
>
> NoMethodError: undefined method `notes'' for
>
> What am I missing here?
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
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.