search for: choose_part

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

Did you mean: choose_last
2006 Feb 08
2
Idiomatic way to change partial''s behavior based on caller
..., 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 be dynamic, and allow the controller to set values to pass to the partial. I can see this working in two ways, A: leave the link_to call there, bu...