Thanks for your hints!

In this case Firebug didn't throw any error.

Sp I replaced:

<% form_tag '/trees' do -%>
  <%= submit_to_remote 'new_tree', 'Add a tree', :url => { :controller
=> 'trees', :action => 'new' } %>
<% end -%>

By:

<%= button_to_function 'Add a tree' do |page| page.replace_html 
'newtree', :partial => 'user/trees/newtree' end %>

...and it works fine! Thanks!
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to