internetchris wrote:
> So I can basically place "if" statements in the action based upon the
> identification of the submit button right? 

Yes.  You could have a dispatcher in the controller that does this, 
although I do not recommend doing this frequently -- it may be messy. 
Remember that you can use multiple forms or plain old links.

> That seems pretty easy
> although I could see how this might be messy if a user has filled out
> another part of the form and you want to make sure that information is
> either saved prior to them using another type of submit button. 

Uh, what?  You only get one submission at a time.

> Can
> all of this be circumvented using ajax within the form? With the use
> of Ajax can I submit a single call to an action without worrying about
> anything else on that form?

Sure.  But of course it won't work if the client has JS turned off.

> 
> Thanks

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
> 
> Chris

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