app/helpers/application_helper.rb
# Render a form_for tag pointing to the update action of the current controller
Render a form_for tag pointing to the update action of the current controller
Render a form_for tag pointing to the update action of the current controller
def step_form(record, options = {}, &block)
    opts = {
      url: { controller: controller.controller_path, action: :update },
      method: :put
    }.merge(options)
    opts.merge!(
      html: { class: dom_class(record, :edit) }
    ) do |_key, old_value, new_value|
      { class: old_value.values | new_value.values }
    end
    form_for record, opts, &block
  end
def step_form ( record , options = { } , & block ) opts = { url : { controller : controller . controller_path , action : :update } , method : :put } . merge ( options ) opts . merge! ( html : { class : dom_class ( record , :edit ) } ) do | _key , old_value , new_value | { class : old_value . values | new_value . values } end form_for record , opts , & block end
Render a form_for tag pointing to the update action of the current controller
Render a form_for tag pointing to the update action of the current controller
# Support for appending optional css classes, maintaining the default one
record
options
block