app/helpers/application_helper.rb
# remote link to create new entity
remote link to create new entity
remote link to create new entity
def remote_link_to_new(text = "新規追加",  options = {}, html_options = {})
    if registered? && (at_present? || simulation_mode?) && allow_to_add_new_entity?(options)
      options[:controller] ||= controller_name
      options[:url] = {:controller => options[:controller], :action => "new"}
      options[:params] = options[:params].to_h.merge( :background_params => @background_params )
      html_options[:class] ||= "op-control"
      link_to_remote_with_params( text,  options, html_options ) 
    end
  end
def remote_link_to_new ( text = "新規追加",  optio n = {}, h m _ o p ions = {}) if registered? && ( at_present? || simulation_mode? ) && allow_to_add_new_entity? ( options ) options [ :controller ] ||= controller_name options [ :url ] = { :controller => options [ :controller ] , :action => "new" } options [ :params ] = options [ :params ] . to_h . merge ( :background_params => @background_params ) html_options [ :class ] ||= "op-control" link_to_remote_with_params ( text , options , html_options ) end end
remote link to create new entity
remote link to create new entity
text
<not_specific>
options
<not_specific>
html_options
<not_specific>