2015-05-12から1日間の記事一覧
検索用フォームのオブジェクトをnewするときは#attributesを使うと良さそう。 class HogeSearchForm include ActiveModel::Model attr_accessor :id, :price, :number, :tel, :tel_search_index, end @hoge_search_form = HogeSearchForm.new(@hoge.attribut…
検索用フォームのオブジェクトをnewするときは#attributesを使うと良さそう。 class HogeSearchForm include ActiveModel::Model attr_accessor :id, :price, :number, :tel, :tel_search_index, end @hoge_search_form = HogeSearchForm.new(@hoge.attribut…