lib/active_scaffold/helpers/action_link_helpers.rb
# params which mustn't be copying to nested links
params which mustn't be copying to nested links
params which mustn ' t be copying to nested links
def action_link_html_options(link, record, options)
        link_id = get_action_link_id(link, record)
        html_options = link.html_options.merge(:class => [link.html_options[:class], link.action.to_s].compact.join(' '))
        html_options[:link] = action_link_text(link, options)
        html_options[:method] = link.method if link.method != :get
        html_options[:data] ||= {}
        html_options[:data][:confirm] = link.confirm(h(record&.to_label)) if link.confirm?
        if !options[:page] && !options[:popup] && (options[:inline] || link.inline?)
          html_options[:class] << ' as_action'
          html_options[:data][:position] = link.position if link.position
          html_options[:data][:action] = link.action
          html_options[:data][:cancel_refresh] = true if link.refresh_on_close
          html_options[:data][:keep_open] = true if link.keep_open?
          html_options[:remote] = true
        end
        if link.toggle
          html_options[:class] << ' toggle'
          html_options[:class] << ' active' if action_link_selected?(link, record)
        end
        if !options[:page] && !options[:inline] && (options[:popup] || link.popup?)
          html_options[:target] = '_blank'
          html_options[:rel] = [html_options[:rel], 'noopener noreferrer'].compact.join(' ')
        end
        html_options[:id] = link_id
        if link.dhtml_confirm?
          unless link.inline?
            html_options[:class] << ' as_action'
            html_options[:page_link] = 'true'
          end
          html_options[:dhtml_confirm] = link.dhtml_confirm.value
          html_options[:onclick] = link.dhtml_confirm.onclick_function(controller, link_id)
        end
        html_options
      end
def action_link_html_options ( link , record , options ) link_id = get_action_link_id ( link , record ) html_options = link . html_options . merge ( :class => [ link . html_options [ :class ] , link . action . to_s ] . compact . join ( ' ' ) ) html_options [ :link ] = action_link_text ( link , options ) html_options [ :method ] = link . method if link . method != :get html_options [ :data ] ||= { } html_options [ :data ] [ :confirm ] = link . confirm ( h ( record &. to_label ) ) if link . confirm? if ! options [ :page ] && ! options [ :popup ] && ( options [ :inline ] || link . inline? ) html_options [ :class ] << ' as_action' html_options [ :data ] [ :position ] = link . position if link . position html_options [ :data ] [ :action ] = link . action html_options [ :data ] [ :cancel_refresh ] = true if link . refresh_on_close html_options [ :data ] [ :keep_open ] = true if link . keep_open? html_options [ :remote ] = true end if link . toggle html_options [ :class ] << ' toggle' html_options [ :class ] << ' active' if action_link_selected? ( link , record ) end if ! options [ :page ] && ! options [ :inline ] && ( options [ :popup ] || link . popup? ) html_options [ :target ] = '_blank' html_options [ :rel ] = [ html_options [ :rel ] , 'noopener noreferrer' ] . compact . join ( ' ' ) end html_options [ :id ] = link_id if link . dhtml_confirm? unless link . inline? html_options [ :class ] << ' as_action' html_options [ :page_link ] = 'true' end html_options [ :dhtml_confirm ] = link . dhtml_confirm . value html_options [ :onclick ] = link . dhtml_confirm . onclick_function ( controller , link_id ) end html_options end
params which mustn't be copying to nested links
params which mustn ' t be copying to nested links
# Needs to be in html_options to as the adding _method to the url is no longer supported by Rails
link
<not_specific>
record
<not_specific>
options
<not_specific>