I have:
<% @link_categories.each do |lc| %> ... <%= link_to_function (image_tag "icons/bullet_add_green.png", :align => "absmiddle", :border => 0), "show category" do |page| page[:subcategory].toggle page[:subcategory].replace_html :partial => "new_subcategory", :locals => {:data => lc.data, :pid => lc.id } end %> ...
In the partial I have:
...
Neue Unterkategorie in <strong>"<%= data %>"</strong> erstellen: ... <%= hidden_field "link_category", "member_id", :value => "2" %> <%= hidden_field "link_category", "parent_id", :value => pid %>
"data" is properly insert into the partial, but "pid" won't.
Any hints?
Thanx