JannaB wrote:
> I have a submit button on a form, which is in a div. When submitted,
> an email is sent, the div closes, all else remains the same in the
> view. Im just having a hard time in my mind fitting this into the
> Rails MVC paradigm here. How can I do this? -Janna
> 

I don't think that is so much because of rails but because that is a 
consequence of submitting a form.  However, you could investigate what 
Fred suggests or try

<% form_remote_tag :update => 'dud', :url => {:action => 'the action'} 
do%>

I just tried this and nothing complains if you try to update a 
non-existent page element ('dud'), so that will work.  The page with the 
form remains with nothing changed, but the controller does process the 
form.

:)
-- 
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