app/helpers/application_helper.rb
# :exception option is set to be true if allowing to render link_to_remote as exception
#   example:  seminar modification by teachers of seminar not creater.
# refer Run#to_entity_ref for explanation of options[:assoc_ref] to limit associations to entity.
#  too many associations cause HTTP request trouble to be too long.
:exception option is set to be true if allowing to render link_to_remote as exception
example:  seminar modification by teachers of seminar not creater.
refer Run#to_entity_ref for explanation of options[:assoc_ref] to limit associations to entity.
too many associations cause HTTP request trouble to be too long.
: exception option is set to be true if allowing to render link_to_remote as exception example : seminar modification by teachers of seminar not creater . refer Run#to_entity_ref for explanation of options [ : assoc_ref ] to limit associations to entity . too many associations cause HTTP request trouble to be too long .
def link_to_altering(entity, text, action, options={}, html_options={})
    entity.is_a?(Run) or fail TypeError, "entity for updating is not a Run entity"
    controller = options[:controller] || entity.controller_name
    entity_ref = entity.to_entity_ref(:only_primary_attributes, options[:assoc_ref])
    if commit_allowed?( entity) || options[:exception]
        link_to_remote_with_params( text, 
                        {:url => {:controller => controller, :action => action, :id => entity.to_param}, 
                         :params => {:entity_ref => entity_ref, :background_params => @background_params},
                         :method => :get},
                        html_options) 
    end    
  end
def link_to_altering ( entity , text , action , options = { } , html_options = { } ) entity . is_a? ( Run ) or fail TypeError , "entity for updating is not a Run entity" controller = options [ :controller ] || entity . controller_name entity_ref = entity . to_entity_ref ( :only_primary_attributes , options [ :assoc_ref ] ) if commit_allowed? ( entity ) || options [ :exception ] link_to_remote_with_params ( text , { :url => { :controller => controller , :action => action , :id => entity . to_param } , :params => { :entity_ref => entity_ref , :background_params => @background_params } , :method => :get } , html_options ) end end
:exception option is set to be true if allowing to render link_to_remote as exception
example:  seminar modification by teachers of seminar not creater.
: exception option is set to be true if allowing to render link_to_remote as exception example : seminar modification by teachers of seminar not creater .
entity
<not_specific>
text
<not_specific>
action
<not_specific>
options
<not_specific>
html_options
<not_specific>