2013-03-27から1日間の記事一覧
ダブルクオーテーションやシングルクォーテーションが多い時に使える。 http://www.rubylife.jp/ini/string/index3.html%Q,%qなど。
html_optionsで指定する。 <%= o.select :weighting, options_for_select([ ["Correct", "4", {:class=>"bold"}], ["Good", "3"], ["Average", "2"], ["Poor", "1"], ["Incorrect", "0", {:class=>"bold"}] ], @whatever.weighting.to_s), {}, html_options …
http://stackoverflow.com/questions/12201835/form-inline-inside-a-form-horizontal-in-twitter-bootstrap <form class="form-horizontal"> <div class="control-group"> <label class="control-label" for="inputType">Type</label> <div class="controls"> <input type="text" id="inputType" placeholder="Type"> </div></div></form>
<button class="pull-right"></button>