Created
January 23, 2015 01:30
-
-
Save uptownhr/c0c5cbabb0e26e5bcea9 to your computer and use it in GitHub Desktop.
forme in sinatra ERB outputing to escaped string
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(@user, :action => '/user/update/' + @user.id.to_s, :method => 'PUT') do |f| %> | |
<%= partial 'users/form', :locals => { :f => f } %> | |
<% end %> | |
#output in string using sinatra ERB. | |
#attempted to follow, https://github.com/jeremyevans/forme#erb-support | |
#but not sure how to change the @out_buf | |
<span class="label">Accounts</span><label class="option"><input checked="checked" id="user_account_pks_1" name="user[account_pks][]" type="checkbox" value="1"/> TestAccount</label><label class="option"><input checked="checked" id="user_account_pks_2" name="user[account_pks][]" type="checkbox" value="2"/> new user name</label> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment