Created
December 17, 2013 22:16
-
-
Save raarellano/8013600 to your computer and use it in GitHub Desktop.
Submit Radio button with a remote form in a Rails 4 app.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= form_for(@edit_single_response, remote: true, authenticity_token: true, :html => {:class => 'form-horizontal form-for-responses'} ) do |f| | |
- question.response_options.each do |response_option| | |
.form-group | |
%label.radio | |
= f.radio_button :response_option_number, response_option.id, :onclick => '$(this).trigger("submit.rails")' | |
%span | |
=response_option.text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment