Ruby on Rails Wednesday, February 1, 2012

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@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
> 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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment