controller

controller() Instance Public methods

fifth!

fifth!() Instance Public methods Same as fifth but raises ActiveRecord::RecordNotFound if no record is found.

ole_initialize

ole_initialize() Class Public methods :nodoc

new

new(*args) Class Public methods

calculate_ip

calculate_ip() Instance Public methods Sort through the various IP address headers, looking for the IP most likely to be the address of the actual remote client making this request. REMOTE_ADDR will be correct if the request is made directly against the Ruby process, on e.g. Heroku. When the request is proxied by another server like HAProxy or Nginx, the IP address that made the original request will be put in an X-Forwarded-For header. If there are multiple proxies, that header ma

group_sub

group_sub() Instance Public methods

ri_dir

ri_dir() Instance Public methods Returns the full path to this spec's ri directory.

to_param

to_param() Instance Public methods Returns a String, which Action Pack uses for constructing an URL to this object. The default implementation returns this record's id as a String, or nil if this record's unsaved. For example, suppose that you have a User model, and that you have a resources :users route. Normally, user_path will construct a path with the user object's 'id' in it: user = User.find_by(name: 'Phusion') user_path(user) # => "/users/1" You can override to_param in

minus_with_coercion

minus_with_coercion(other) Instance Public methods Time#- can also be used to determine the number of seconds between two Time instances. We're layering on additional behavior so that ActiveSupport::TimeWithZone instances are coerced into values that Time#- will recognize -

collect

collect() Instance Public methods Like Array#collect. map