previousSibling

previousSibling() Instance Public methods IXMLDOMNode previousSibling left sibling of the node

redirect

redirect(*args, &block) Instance Public methods Redirect any path to another path: get "/stories" => redirect("/posts") You can also use interpolation in the supplied redirect argument: get 'docs/:article', to: redirect('/wiki/%{article}') Note that if you return a path without a leading slash then the url is prefixed with the current SCRIPT_NAME environment variable. This is typically '/' but may be different in a mounted engine or where the application is deployed to a s

sortcolumnlist

sortcolumnlist() Instance Public methods

respond_to

respond_to(*mimes, &block) Instance Public methods Without web-service support, an action which collects the data for displaying a list of people might look something like this: def index @people = Person.all end Here's the same action, with web-service support baked in: def index @people = Person.all respond_to do |format| format.html format.xml { render xml: @people } end end What that says is, âif the client wants HTML in response to this action, just resp

supports_explain?

supports_explain?() Instance Public methods

rdoc_options=

rdoc_options=(options) Instance Public methods Sets #rdoc_options to value, ensuring it is an array. Don't use this, push onto the array instead.

rb_appsend

rb_appsend(async, *args) Instance Public methods

invoke

invoke(elem) Instance Public methods

patch

patch(path, data, initheader = nil, dest = nil) Instance Public methods Sends a PATCH request to the path and gets a response, as an HTTPResponse object.

number_to_human_size

number_to_human_size(number, options = {}) Instance Public methods Formats the bytes in number into a more understandable representation (e.g., giving it 1500 yields 1.5 KB). This method is useful for reporting file sizes to users. You can customize the format in the options hash. See number_to_human if you want to pretty-print a generic number. Options :locale - Sets the locale to be used for formatting (defaults to current locale). :precision - Sets the precision of the number