Hi there, can somebody enlighten me why this throws an error (when this code is called):
<% form_remote_tag :url => '/user/agents' do -%> <%= button_to_function 'Personal account' do |page| page.replace_html 'newagentpersonal', :partial => 'user/agents/newagentpersonal' end %> <div id="newagentpersonal"> <%= render :partial => 'newagentpersonal' %> </div> <p><%= submit_tag 'Add' %></p> <% end -%> ...while this doesn't: <% form_remote_tag :url => '/user/agents' do -%> [--the only difference here: this (button code) line is deleted--] <div id="newagentpersonal"> <%= render :partial => 'newagentpersonal' %> </div> <p><%= submit_tag 'Add' %></p> <% end -%> Firebug reports "missing ) after argument list" (and it's definitely that second line that causes the error). How can I make this work? Thanks a lot for any help! Tom -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

