2008-01-21から1日間の記事一覧
重複のあるnewとedit 通常、form_forを使ってnew、editを書くと以下のような状況になるかと...。(中身がとても似ている。) # app/views/slips/new.rhtml <% form_for :slip, :url=>{:action=>'create'} do |f| %> <%= f.text_field :number %> <%= f.text_…
重複のあるnewとedit 通常、form_forを使ってnew、editを書くと以下のような状況になるかと...。(中身がとても似ている。) # app/views/slips/new.rhtml <% form_for :slip, :url=>{:action=>'create'} do |f| %> <%= f.text_field :number %> <%= f.text_…