Methods
E
P
T
Included Modules
Instance Public methods
errors()
# File actionpack/test/lib/controller/fake_models.rb, line 22
def errors
  []
end
persisted?()
# File actionpack/test/lib/controller/fake_models.rb, line 26
def persisted?
  id.present?
end
to_js(options={})
Also aliased as: to_text, to_text, to_text
# File actionpack/test/lib/controller/fake_models.rb, line 17
def to_js(options={})
  "name: #{name.inspect}"
end
to_text(options={})
Alias for: to_js
to_xml(options={})
# File actionpack/test/lib/controller/fake_models.rb, line 9
def to_xml(options={})
  if options[:builder]
    options[:builder].name name
  else
    "<name>#{name}</name>"
  end
end