build(attributes = {})
public
Builds a new, unsaved record using the default values from the remote
server so that it can be used with RESTful forms.
Options
Returns the new resource
instance.
# File activeresource/lib/active_resource/base.rb, line 709
def build(attributes = {})
attrs = self.format.decode(connection.get("#{new_element_path}").body).merge(attributes)
self.new(attrs)
end