assert_redirected_to

assert_redirected_to(options = {}, message=nil) Instance Public methods Assert that the redirection options passed in match those of the redirect called in the latest action. This match can be partial, such that assert_redirected_to(controller: "weblog") will also match the redirection of redirect_to(controller: "weblog", action: "show") and so on. # assert that the redirection was to the "index" action on the WeblogController assert_redirected_to controller: "weblog", action: "ind

line_trace_all

line_trace_all() Instance Public methods Experimental MRI specific feature, only available as C level api. Returns all specified_line events.

new

new(tree, pos, parent=nil, keys={}) Class Public methods

json_create

json_create(o) Instance Public methods Raw Strings are JSON Objects (the raw bytes are stored in an array for the key ârawâ). The Ruby String can be created by this module method.

===

fix == other â true or false Instance Public methods Return true if fix equals other numerically. 1 == 2 #=> false 1 == 1.0 #=> true

submit

submit(value=nil, options={}) Instance Public methods Add the submit button for the given form. When no value is given, it checks if the object is a new resource or not to create the proper label: <%= form_for @post do |f| %> <%= f.submit %> <% end %> In the example above, if @post is a new record, it will use âCreate Postâ as submit button label, otherwise, it uses âUpdate Postâ. Those labels can be customized using I18n, under the helpers.submit key and accept

info

info(message)info(progname, &block) Instance Public methods Log an INFO message. message The message to log; does not need to be a String. progname In the block form, this is the progname to use in the log message. The default can be set with progname=. block Evaluates to the message to log. This is not evaluated unless the logger's level is sufficient to log the message. This allows you to create potentially expensive logging messages that are only called when the

new

new(name, keys=nil) Class Public methods Also aliased as: _new

run

run() Instance Public methods Run the Rake application. The run method performs the following three steps: Initialize the command line options (init). Define the tasks (load_rakefile). Run the top level tasks (top_level). If you wish to build a custom rake command, you should call init on your application. Then define any tasks. Finally, call top_level to run your top level tasks.

thread_list

thread_list(num) Class Public methods