app/helpers/application_helper.rb
# standard (non ajax) call for entity detail to show
# entity is supposed to have id and model_name
# options[:force_controller], options[:force_controller] and options[:force_id] are forced params to change entity character
standard (non ajax) call for entity detail to show
entity is supposed to have id and model_name
options[:force_controller], options[:force_controller] and options[:force_id] are forced params to change entity character
standard ( non ajax ) call for entity detail to show entity is supposed to have id and model_name options [ : force_controller ] options [ : force_controller ] and options [ : force_id ] are forced params to change entity character
def call_for_detail(entity, text, options = {}, html_options = {})
    text ||= "..."
    opt = options.dup
    opt[:controller] = options[:force_controller] || entity.controller_name
    opt[:action]     = options[:force_action] || "show"
    opt[:id]         = options[:force_id] || entity.to_param
    opt[:background_params] = @background_params
    if html_options[:popup] || html_options[:target]
      opt[:layout] ||= "base_layout_for_non_collection"
    end
    link_to text, opt, html_options
  end
def call_for_detail ( entity , text , options = { } , html_options = { } ) text ||= "..." opt = options . dup opt [ :controller ] = options [ :force_controller ] || entity . controller_name opt [ :action ] = options [ :force_action ] || "show" opt [ :id ] = options [ :force_id ] || entity . to_param opt [ :background_params ] = @background_params if html_options [ :popup ] || html_options [ :target ] opt [ :layout ] ||= "base_layout_for_non_collection" end link_to text , opt , html_options end
standard (non ajax) call for entity detail to show
entity is supposed to have id and model_name
options[:force_controller], options[:force_controller] and options[:force_id] are forced params to change entity character
standard ( non ajax ) call for entity detail to show entity is supposed to have id and model_name options [ : force_controller ] options [ : force_controller ] and options [ : force_id ] are forced params to change entity character
# for the case of new window to render
entity
<not_specific>
text
<not_specific>
options
<not_specific>
html_options
<not_specific>