link_to_if

link_to_if(condition, name, options = {}, html_options = {}, &block) Instance Public methods Creates a link tag of the given name using a URL created by the set of options if condition is true, otherwise only the name is returned. To specialize the default behavior, you can pass a block that accepts the name or the full argument list for link_to_unless (see the examples in link_to_unless). Examples <%= link_to_if(@current_user.nil?, "Login", { controller: "sessions", action:

check_that_user_bin_dir_is_in_path

check_that_user_bin_dir_is_in_path() Instance Public methods DOC: Missing docs or :nodoc:.

filter_backtrace

filter_backtrace(array) Class Public methods

configure

configure(*args) Instance Public methods

cget_strict

cget_strict(option) Instance Public methods

new

new(keys=nil, &b) Class Public methods

valid?

valid?(context = nil) Instance Public methods Runs all the specified validations and returns true if no errors were added otherwise false. class Person include ActiveModel::Validations attr_accessor :name validates_presence_of :name end person = Person.new person.name = '' person.valid? # => false person.name = 'david' person.valid? # => true Context can optionally be supplied to define which callbacks to test against (the context is defined on the validations using

sortByColumn_with_event_generate

sortByColumn_with_event_generate(idx) Instance Public methods

initialize_copy

initialize_copy(orig) Instance Public methods Duplicate an OpenStruct object members.

Hash

Hash(arg) â hash Instance Public methods Converts arg to a Hash by calling arg.to_hash. Returns an empty Hash when arg is nil or []. Hash([]) #=> {} Hash(nil) #=> nil Hash(key: :value) #=> {:key => :value} Hash([1, 2, 3]) #=> TypeError