Hello, I'm new in Rails and I'm Trying to implement a plattform were authorized people can apply Profiles to a special topic. The profil can be identified by the ID and the title in the data base. So in the view/profil/show_profil.html.erb the infomation of one Profil are perfektly shown.
My problem: I have an data base table called : "comment" in which I save comments users made to one Profil, identifed by the Profil ID which I also save in this table. My Idea was to invoke an partial in the View/profil/ show_profil.html.erb... something like: <%= render :partial => "comments/comments_show" %> But how can I find and show the comments with the ID of the used Profil?!?!? Can I handover the Profil_ID somehow and if so how can I use it? It was hard for me to explain my problem and I hope this was understandable. Hope to get some Ideas and solutions. -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.