I''m rephrasing my question,
(as I wrote before)I''ve sucessfully created an upload and view for one
picture connected to current_user, but who am I suppose to create MANY
pictures to one user?
I''m well aware that the models need to have "has_many" and
"belongs_to"
and these are right. but with only "has_many :entries" (and belongs_to
:user) I recieve "unkown method entry".
However, one problem might be that I haven''t quite understood "how
to
know where" to write "entry" and where to write
"entries" in the code.
(even though I thought this just should be dependent on the "has_many"
in the model).
So I''ve tried a couple of diffrent ways to figure out where they should
be called "entries" and "entry", but more than it results in
"''image_relative_path'' for Entry:Class"
pretty please help me
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---