Joined March 2015
·
Posted to
A Custom Rails FormBuilder for Twitter Bootstrap 3
over 1 year
ago
Where is the definition for @template.update_options_with_class!
? Google search comes up empty and searching the rails repository on github finds no matches.
Update: Nevermind. I found it at the bottom of this example. Got stuck thinking it was a Rails method.
Thanks for this. I was struggling to find the same solution myself. However, the "^[[A" and "^[[B" did not register as Up and Down in my terminal for some reason. [1] has an interesting lookup pattern that sets
$key_info["Up"} = "$terminfo[kcuu1]"</code>--similarly for other special keys--and with that the Up and Down keys worked.
[1] https://raw.githubusercontent.com/sorin-ionescu/prezto/28a20b48e652a01216a6c3dd76e6324d76c12def/modules/editor/init.zsh