Re: submission problem

Walter Lee Davis
Wed, 01 Feb 2012 14:57:18 -0000

On Feb 1, 2012, at 4:52 AM, sudhir singh tomar wrote:

> Hi Friends
> somebody help me,
>
> I have one pop-up window there one submit button if i submitting that
> button twice or thrice it save the value upon your submitting button
> so please give me some suggestion

Are you trying to stop multiple clicks on the button? Use the :disable_with
option on the submit element:

<%= f.submit :disable_with => ''Saving...'' %>

Walter

>
> how can i solve this problem
>
> --
> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
>

--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at