search for: _target_lists

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

Did you mean: target_lists
2006 Mar 18
9
Using <%= text_field %> within partials is problematic
...an''t figure out why a text_field call within it doesn''t work. Here is my calling template: lists.rhtml <div id="target_lists"> <%= render(:partial => "target_lists", :collection => @target_lists) %> </div> In the partial template: _target_lists.rhtml, if I have the following code, <%= target_lists[:id] %>&nbsp;<%= target_lists[:name] %><BR/> I see the id and name attributes of each member of @target_lists when I render. However, if I do this: <%= text_field :target_lists, :name %> I get "undefi...