class HomeController < ApplicationController layout false def default_fields @user = User.new end def errors_for @user = User.new @user.errors.add(:email, "should be email") end def field_with_hint @user = User.new end def buttons @user = User.new end def submit_button @user = User.new end end