2007-09-19から1日間の記事一覧
以下のメソッドを、application_helper.rb にでも追加しておく def button_to_function(name, function, html_options = {}) html_options.symbolize_keys! tag(:input, html_options.merge({ :type => "button", :value => name, :onclick => (html_options…
以下のメソッドを、application_helper.rb にでも追加しておく def button_to_function(name, function, html_options = {}) html_options.symbolize_keys! tag(:input, html_options.merge({ :type => "button", :value => name, :onclick => (html_options…