Displaying 2 results from an estimated 2 matches for "my_property".
Did you mean:
_property
2006 May 03
2
render partial collection
...em_list.name %>
Now, how can I pass the ''name'' property from my main view? This does not
work:
<%= render(:partial => ''item_list'', :collection => @keyword.synonyms,
:locals => { :action_delete => "removesynonym",
:my_property => "name" })
%>
_item_list.rhtml:
<%= link_to (
image_tag(''/images/deletebutton.png''),
{ :action => action_delete,
:id => @keyword,
item_id => item_list }, %><%= item_list.my_property %>
I tried
item_list."#{my_prope...
2006 May 03
0
render partial collection passing property
...em_list.name %>
Now, how can I pass the ''name'' property from my main view? This does not
work:
<%= render(:partial => ''item_list'', :collection => @keyword.synonyms,
:locals => { :action_delete => "removesynonym",
:my_property => "name" })
%>
_item_list.rhtml:
<%= link_to (
image_tag(''/images/deletebutton.png''),
{ :action => action_delete,
:id => @keyword,
item_id => item_list }, %><%= item_list.my_property %>
I tried
item_list."#{my_prope...