Created
December 17, 2015 00:14
-
-
Save BigMcLargeHuge/742cf7bbaeba5172bace to your computer and use it in GitHub Desktop.
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
I'm attempting to add the data attribute "data-region-id" to a simple_form input as shown in the excerpt in edit.html.erb. | |
However, when I do, I get the following error: | |
SyntaxError (/home/sam/Dropbox/railsproject/legal/app/views/people/edit.html.erb:20: syntax error, unexpected tLABEL | |
...t, input_html: {data-region-id: "person_state", class: 'coun... | |
... ^ |
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
... | |
<div class="form-inline"><%= f.input :country, as: :select, input_html: {data-region-id: "person_state", class: 'country form_control crs-country'}, label: "Country" %></div> | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment