search for: associated_part_number

Displaying 1 result from an estimated 1 matches for "associated_part_number".

2006 Feb 08
2
Idiomatic way to change partial''s behavior based on caller
...s, I have a partial that is shared by many controllers, and this partial has a link that needs to do different things based on which controller calls it. So, the partial looks like this: <!-- _part.rhtml --> <tr> <td><%=part.number%></td> <td><%=part.associated_part_number%></td> <td><%=part.drawings%></td> <td><%=link_to "Choose this part", {:action=>"choose_part", :id=>part.id}, :confirm=>"Are you sure?"%></td> </tr> What I''d like to do is change the link_to to...