lib/generators/dry_crud/templates/app/helpers/standard_helper.rb
# A generic helper method to create action links.
# These link could be styled to look like buttons, for example.
A generic helper method to create action links.
These link could be styled to look like buttons, for example.
A generic helper method to create action links . These link could be styled to look like buttons for example .
def link_action(label, icon = nil, url = {}, html_options = {})
    add_css_class html_options, 'action btn'
    link_to(icon ? action_icon(icon, label) : label,
            url, html_options)
  end
def link_action ( label , icon = nil , url = { } , html_options = { } ) add_css_class html_options , 'action btn' link_to ( icon ? action_icon ( icon , label ) : label , url , html_options ) end
A generic helper method to create action links.
A generic helper method to create action links .
label
icon
url
html_options