new

new(*args) Class Public methods

message

message(*args) Instance Public methods

week_field

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

utc 2

time.gmtime â timetime.utc â time Instance Public methods Converts time to UTC (GMT), modifying the receiver. t = Time.now #=> 2007-11-19 08:18:31 -0600 t.gmt? #=> false t.gmtime #=> 2007-11-19 14:18:31 UTC t.gmt? #=> true t = Time.now #=> 2007-11-19 08:18:51 -0600 t.utc? #=> false t.utc #=> 2007-11-19 14:18:51 UTC t.utc? #=> true

find

find() Instance Public methods Iterates over the directory tree in a depth first manner, yielding a Pathname for each file under âthisâ directory. Returns an Enumerator if no block is given. Since it is implemented by the standard library module Find, Find.prune can be used to control the traversal. If self is ., yielded pathnames begin with a filename in the current directory, not ./. See Find.find

save_page

save_page(page) Instance Public methods Writes the ri data for page

empty_partial_collection

empty_partial_collection() Instance Public methods

raw_post

raw_post() Instance Public methods Read the request body. This is useful for web services that need to work with raw requests directly.

post

post(x, y) Instance Public methods

gregorian?

d.gregorian? â bool Instance Public methods Retunrs true if the date is on or after the day of calendar reform. Date.new(1582,10,15).gregorian? #=> true (Date.new(1582,10,15) - 1).gregorian? #=> false