Tag : multiple-submit-buttons-in-rails

Multiple Submit buttons in a single view in Rails

While working in an assignment, I have to dealt with view where I have to re-send the verification code form the same view in which I have to accept the verification code.

Multiple_Submit_in_view

As shown in the image, “Confirm” and “Resend code” both are 2 submit buttons. I need to resend another code from the same page without redirecting.

How I made it work ??

View part

Added both the submit buttons

Controller part

Handled the post action part

Categories: Ruby On Rails

%d bloggers like this: