Ok in my view.rhtml:
<% form_for :sale, :url => {:action => 'add_sale', :id => @report},
:html => {:id => 'sales_form'} do |f| %>
...
<%= f.text_field :unit_price, :size => 10 %>
...
<% end %>
<%= observe_form( :sales_form, :url => {:action => "update_sales_form"},
:update => :sale_unit_price) %>
and in my controller:
def update_sales_form
render :text => "100"
end
------
Now when i make a change to the form (click around, etc), it is calling
"update_sales_form". But apparently I'm confused as to how to update the
"unit_price" element in the DOM.
Thanks for any help
--
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
-~----------~----~----~----~------~----~------~--~---