all_helpers_from_path(path) Instance Public methods
log_error(exception) Instance Public methods
add_filter(&block) Instance Public methods Adds a filter from the block provided. Each line in the backtrace will be mapped against this filter. # Will turn "/my/rails/root/app/models/person.rb" into "/app/models/person.rb" backtrace_cleaner.add_filter { |line| line.gsub(Rails.root, '') }
dom_id(record, prefix = nil) Instance Public methods The DOM id convention is to use the singular form of an object or class with the id following an underscore. If no id is found, prefix with ânew_â instead. dom_id(Post.find(45)) # => "post_45" dom_id(Post.new) # => "new_post" If you need to address multiple instances of the same class in the same view, you can prefix the #dom_id: dom_id(Post.find(45), :edit) # => "edit_post_45" dom_id(Post.new, :custom)
belongs_to?(group) Instance Public methods
end_of_day() Instance Public methods Returns a new Time representing the end of the day, 23:59:59.999999 (.999999999 in ruby1.9) at_end_of_day
many?() Instance Public methods Returns true if there is more than one record.
set_callbacks(name, callbacks) Instance Protected methods
advance(options) Instance Public methods Uses Date to provide precise Time calculations for years, months, and days. The options parameter takes a hash with any of these keys: :years, :months, :weeks, :days, :hours, :minutes, :seconds.
response_code() Instance Public methods The response code of the request.
Page 144 of 2275