without_modules

without_modules(*modules) Class Public methods Shortcut helper that returns all the modules included in ActionController::Base except the ones passed as arguments: class MetalController ActionController::Base.without_modules(:ParamsWrapper, :Streaming).each do |left| include left end end This gives better control over what you want to exclude and makes it easier to create a bare controller class, instead of listing the modules required manually.

assigns

assigns(key = nil) Instance Public methods

request

request Instance Public methods Returns an ActionDispatch::Request instance that represents the current request.

response

response Instance Public methods Returns an ActionDispatch::Response that represents the current response.

view_cache_dependency

view_cache_dependency(&dependency) Instance Public methods

cache_store

cache_store() Instance Public methods

cache_store=

cache_store=(store) Instance Public methods

expire_fragment

expire_fragment(key, options = nil) Instance Public methods Removes fragments from the cache. key can take one of three forms: String - This would normally take the form of a path, like pages/45/notes. Hash - Treated as an implicit call to url_for, like { controller: 'pages', action: 'notes', id: 45} Regexp - Will remove any fragment that matches, so %r{pages/\d*/notes} might remove all notes. Make sure you don't use anchors in the regex (^ or $) because the actual filename ma

fragment_cache_key

fragment_cache_key(key) Instance Public methods Given a key (as described in expire_fragment), returns a key suitable for use in reading, writing, or expiring a cached fragment. All keys are prefixed with views/ and uses ActiveSupport::Cache.expand_cache_key for the expansion.

fragment_exist?

fragment_exist?(key, options = nil) Instance Public methods Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).