Displaying 2 results from an estimated 2 matches for "profil_id".
Did you mean:
profile_id
2010 Jun 06
2
How to make an SQL querey Within a partial, is that possilbe??
...I try to implement a page where a profil is shown, this is searched by
ID.
within this profil page I want to include the comments that refer to
this profil.
In the back I have to database tabels, the one "profiles" and a second
"comments".
In the second one I ve the column "profil_id" because my Idea was to
search for the Id of the profil which is shown and than to display the
comments in which the profil_id is the same.
I already tried to implement this Idea but I hit some problems:
the profil page works fine.
show.erb.html:
<tr>
<td class=&...
2010 May 27
1
How to pass an Variable to an Partial?!?
...h 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 e...