initialize_internals_callback

initialize_internals_callback() Instance Public methods

item_has_button

item_has_button(item, st=None) Instance Public methods Alias for: item_hasbutton

split

split(uri) Class Public methods Synopsis URI::split(uri) Args uri String with URI. Description Splits the string on following parts and returns array with result: * Scheme * Userinfo * Host * Port * Registry * Path * Opaque * Query * Fragment Usage require 'uri' p URI.split("http://www.ruby-lang.org/") # => ["http", nil, "www.ruby-lang.org", nil, nil, "/", nil, nil, nil]

extract_comment

extract_comment(comment) Instance Public methods Extracts the comment for this section from the original comment block. If the first line contains :section:, strip it and use the rest. Otherwise remove lines up to the line containing :section:, and look for those lines again at the end and remove them. This lets us write # :section: The title # The body

source_configure

source_configure(win, slot, value=None) Class Public methods

tag_bind_append

tag_bind_append(tag, seq, *args) Instance Public methods

selected_item_count

selected_item_count() Instance Public methods

_get_variable2

_get_variable2(p1, p2, p3) Instance Public methods

output

output(file=nil, keys={}) Instance Public methods

member

member() Instance Public methods To add a member route, add a member block into the resource block: resources :photos do member do get 'preview' end end This will recognize /photos/1/preview with GET, and route to the preview action of PhotosController. It will also create the preview_photo_url and preview_photo_path helpers.