app/forms/dynamic_product_form.rb
# Save the product to the database with its dynamic fields
Save the product to the database with its dynamic fields
Save the product to the database with its dynamic fields
def save
    return false unless valid?
    @product.name = @attributes['name']
    set_dynamic_fields
    @product.save
  end
def save return false unless valid? @product . name = @attributes [ 'name' ] set_dynamic_fields @product . save end
Save the product to the database with its dynamic fields
Save the product to the database with its dynamic fields