double check lc.id is working, try another var name [?]
On Thu, May 1, 2008 at 11:12 AM, Jochen kaechelin
<gissmoh-mq+tHXhMx+cPyMaTEpOvjQ@public.gmane.org>
wrote:>
> 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
>
> --
> Jochen
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---