date_field

date_field(object_name, method, options = {}) Instance Public methods Returns a #text_field of type âdateâ. date_field("user", "born_on") # => <input id="user_born_on" name="user[born_on]" type="date" /> The default value is generated by trying to call âto_dateâ on the object's value, which makes it behave as expected for instances of DateTime and ActiveSupport::TimeWithZone. You can still override that by passing the âvalueâ option explicitly, e.g. @user.born_on = Date.n

^

^(tag) Instance Public methods

new

CGI.new(tag_maker) { block }CGI.new(options_hash = {}) { block } Class Public methods Create a new CGI instance. tag_maker This is the same as using the options_hash form with the value { :tag_maker => tag_maker } Note that it is recommended to use the options_hash form, since it also allows you specify the charset you will accept. options_hash A Hash that recognizes two options: :accept_charset specifies encoding of received query string. If omitted, @@accept_charset

new

new(lock = Monitor.new) Class Public methods

package_name

package_name() Class Public methods

[]

[](x) Instance Public methods

vpath

vpath() Instance Public methods

column_exists?

column_exists?(table_name, column_name, type = nil, options = {}) Instance Public methods Checks to see if a column exists in a given table. # Check a column exists column_exists?(:suppliers, :name) # Check a column exists of a particular type column_exists?(:suppliers, :name, :string) # Check a column exists with a specific definition column_exists?(:suppliers, :name, :string, limit: 100) column_exists?(:suppliers, :name, :string, default: 'default') column_exists?(:suppliers, :

&gt;&gt;

>> source Instance Public methods Appends the output to source, which is either a string of a file name or an IO object.

inspect

inspect() Instance Public methods