lib/jets/rails_overrides/url_helper.rb
# Basic implementation of url_for to allow use helpers without routes existence
Basic implementation of url_for to allow use helpers without routes existence
Basic implementation of url_for to allow use helpers without routes existence
def url_for(options = nil) 
    url = case options
          when String
            options
          when :back
            _back_url
          else
            raise ArgumentError, "Please provided a String to link_to as the the second argument. The Jets link_to helper takes as the second argument."
          end
    add_stage_name(url)
  end
def url_for ( options = nil ) url = case options when String options when :back _back_url else raise ArgumentError , "Please provided a String to link_to as the the second argument. The Jets link_to helper takes as the second argument." end add_stage_name ( url ) end
Basic implementation of url_for to allow use helpers without routes existence
Basic implementation of url_for to allow use helpers without routes existence
# :nodoc: # TODO: hook this up to Jets implmentation of config/routes.rb # when ActiveRecord::Base #   record = options #   record.id
options
<not_specific>