datetime_local_field

datetime_local_field(object_name, method, options = {}) Instance Public methods Returns a #text_field of type âdatetime-localâ. datetime_local_field("user", "born_on") # => <input id="user_born_on" name="user[born_on]" type="datetime-local" /> The default value is generated by trying to call strftime with â%Y-%m-%dT%Tâ on the object's value, which makes it behave as expected for instances of DateTime and ActiveSupport::TimeWithZone. @user.born_on = Date.new(1984, 1, 12) d

call

call(env) Instance Public methods

attribute_for_inspect

attribute_for_inspect(attr_name) Instance Public methods Returns an #inspect-like string for the value of the attribute attr_name. String attributes are truncated upto 50 characters, Date and Time attributes are returned in the :db format, Array attributes are truncated upto 10 values. Other attributes return the value of #inspect without modification. person = Person.create!(name: 'David Heinemeier Hansson ' * 3) person.attribute_for_inspect(:name) # => "\"David Heinemeier Han

insert

insert(index, *args, &block) Instance Public methods Also aliased as: insert_before

local_name

local_name() Instance Public methods

case_sensitive_modifier

case_sensitive_modifier(node) Instance Public methods

cache_if

cache_if(condition, name = {}, options = nil, &block) Instance Public methods Cache fragments of a view if condition is true <%= cache_if admin?, project do %> <b>All the topics on this project</b> <%= render project.topics %> <% end %>

__validation_class_list

__validation_class_list() Instance Public methods

resolveExternals=

resolveExternals=(arg0) Instance Public methods VOID resolveExternals indicates whether the parser resolves references to external DTD/Entities/Schema

find_child

find_child(node, label) Instance Public methods