Hello.
I am converting my Java app to Rails and I''ve hit something that has me
a
bit baffled. I''ve been fiddling with this for over an hour and trying
many
different combinations so at this point I''ve lost perspective.
It''s probably something simple but I can''t see it anymore.
I have a component that looks like this:
<% for advertiser_category in @advertiser_categories %>
<li>
<%= text_field ''advertiser_category'',
''category_name'', :class => "category"
%><br/>
<%= link_to advertiser_category.category_name, {:action=>
''edit'', :id =>
advertiser_category}, "class" => "rec" %>
</li>
<% end %>
When this renders, the text fields are empty but the link_to is not... I
added the link_to for debugging purposes - to ensure that I was actually
getting data, etc...
So, why do my text_field(s) not have data in them while link_to happily
renders the contents of advertiser_category.category_name?
What am I missing? I use text_field all over my app and haven''t had any
trouble until now.
Thanks,
Hunter