update

update(attributes) Instance Public methods Updates the attributes of the model from the passed-in hash and saves the record, all wrapped in a transaction. If the object is invalid, the saving will fail and false will be returned. update_attributes

__tk_call_with_enc

__tk_call_with_enc(*args) Instance Public methods Alias for: tk_call_with_enc

check_gems

check_gems() Instance Public methods

site

site(arg) Instance Public methods Issues a SITE command.

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

tag_set

tag_set(node, *tags) Instance Public methods

seconds_to_utc_offset

seconds_to_utc_offset(seconds, colon = true) Class Public methods Assumes self represents an offset from UTC in seconds (as returned from Time#utc_offset) and turns this into an +HH:MM formatted string. TimeZone.seconds_to_utc_offset(-21_600) # => "-06:00"

sbstub

sbstub(sb, cmd, num, units = 'units') Instance Public methods sbstub Used as the :command option for a scrollbar, updates the scrollbar's position.

with_default_scope

with_default_scope(scope, &block) Instance Public methods

each

each(system = true, site = true, home = true, gems = :latest, *extra_dirs) Class Public methods Iterates over each selected path yielding the directory and type. Yielded types: :system Where Ruby's ri data is stored. Yielded when system is true :site Where ri for installed libraries are stored. Yielded when site is true. Normally no ri data is stored here. :home ~/.rdoc. Yielded when home is true. :gem ri data for an installed gem. Yielded when gems is true. :extra