2012-01-30から1日間の記事一覧
冗長な方法 view と contllor に書く方法 contllor hoge_contllor.rb def new あたり *1 @account_types = Account.find(:all).map{|i| [i.account_name, i.id] } view _form.html.erb <div class="field"> <%= f.label :account_type, "account" %><br /> <%= f.select :account_type</div>…