Displaying 1 result from an estimated 1 matches for "shop_f".
Did you mean:
shop_2
2011 Sep 01
0
do you think it's the best solution?
I have:
class Shop < ActiveRecord::Base
has_many :documents, :dependent => :restrict
has_many :roles, :dependent => :restrict
accepts_nested_attributes_for :documents
accepts_nested_attributes_for :roles
the shop _form is:
= simple_form_for(@shop) do |shop_f|
= render ''shared/error_messages'', :object => @shop
= render :partial => ''document_fields_form'', :locals => { :f =>
shop_f } if @shop.new_record? or @document
= field_set_tag t(''shop'') do
.inputs
= shop_f.input :name
........