lib/generators/dry_crud/templates/app/helpers/crud_helper.rb
def action_col_edit(table, &block)
    action_col(table) do |e|
      path = action_path(e, &block)
      link_table_action('pencil', path.is_a?(String) ? path : edit_polymorphic_path(path))
    end
  end
# Action link to edit inside a table.
# A block may be given to define the link path for the row entry.
Action link to edit inside a table.
A block may be given to define the link path for the row entry.
Action link to edit inside a table . A block may be given to define the link path for the row entry .
def action_col_edit(table, &block)
    action_col(table) do |e|
      path = action_path(e, &block)
      link_table_action('pencil', path.is_a?(String) ? path : edit_polymorphic_path(path))
    end
  end
def action_col_edit ( table , & block ) action_col ( table ) do | e | path = action_path ( e , & block ) link_table_action ( 'pencil' , path . is_a? ( String ) ? path : edit_polymorphic_path ( path ) ) end end
Action link to edit inside a table.
Action link to edit inside a table .
table
block