Quoting Victor Martin <[email protected]>:
>
> Hi there,
>
> The partial is like this:
>
> <p></p>
> <div id="group" class="elements">
> <p></p>
> <%= link_to_function 'Add text field' do |page|
> page.insert_html :bottom, :group, :partial => 'text'
> end%>
> <g_title>Text Group #1</g_title>
> <%= render :partial => 'text' %>
> </div>
>
> And the code of the insertion is like this:
>
> <%= link_to_function 'Add group' do |page|
> page.insert_html :bottom, :groups, :partial => 'group'
> end %>
>
RTFM. The proper syntax is
<%= link_to_function('Add text field', nil) do |page|
page.insert_html :bottom, :group, :partial => 'text'
end
%>
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---