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_url_options(link, record)
        url_options = {:action => link.action}
        url_options[:id] = '--ID--' unless record.nil?
        url_options[:controller] = link.controller.to_s if link.controller
        url_options.merge! link.parameters if link.parameters
        if link.dynamic_parameters.is_a?(Proc)
          if record.nil?
            url_options.merge! instance_exec(&link.dynamic_parameters)
          else
            url_options.merge! instance_exec(record, &link.dynamic_parameters)
          end
        end
        if link.nested_link?
          url_options_for_nested_link(link.column, record, link, url_options)
        elsif nested?
          url_options[nested.param_name] = '--CHILD_ID--'
        end
        url_options_for_sti_link(link.column, record, link, url_options) unless record.nil? || active_scaffold_config.sti_children.nil?
        url_options[:_method] = link.method if !link.confirm? && link.inline? && link.method != :get
        url_options
      end
def action_link_url_options ( link , record ) url_options = { :action => link . action } url_options [ :id ] = '--ID--' unless record . nil? url_options [ :controller ] = link . controller . to_s if link . controller url_options . merge! link . parameters if link . parameters if link . dynamic_parameters . is_a? ( Proc ) if record . nil? url_options . merge! instance_exec ( & link . dynamic_parameters ) else url_options . merge! instance_exec ( record , & link . dynamic_parameters ) end end if link . nested_link? url_options_for_nested_link ( link . column , record , link , url_options ) elsif nested? url_options [ nested . param_name ] = '--CHILD_ID--' end url_options_for_sti_link ( link . column , record , link , url_options ) unless record . nil? || active_scaffold_config . sti_children . nil? url_options [ :_method ] = link . method if ! link . confirm? && link . inline? && link . method != :get url_options end
params which mustn't be copying to nested links
params which mustn ' t be copying to nested links
link
<not_specific>
record
<not_specific>