lib/scaffolding_extensions/meta_model.rb
# Returns the foreign key for the field if it is an association, or the field
# as a string if it is not.
Returns the foreign key for the field if it is an association, or the field
as a string if it is not.
Returns the foreign key for the field if it is an association or the field as a string if it is not .
def scaffold_field_id(field)
    if reflection = scaffold_association(field)
      scaffold_foreign_key(reflection)
    else
      field.to_s
    end
  end
def scaffold_field_id ( field ) if reflection = scaffold_association ( field ) scaffold_foreign_key ( reflection ) else field . to_s end end
Returns the foreign key for the field if it is an association, or the field
as a string if it is not.
Returns the foreign key for the field if it is an association or the field as a string if it is not .
field
<not_specific>