Skip to content

Instantly share code, notes, and snippets.

@giorgian
Created February 20, 2010 13:49
Show Gist options
  • Save giorgian/309686 to your computer and use it in GitHub Desktop.
Save giorgian/309686 to your computer and use it in GitHub Desktop.
# GET /employees/new
# GET /employees/new.xml
def new
@employee = Employee.new
respond_to do |format|
format.html # new.html.erb
format.xml { render :xml => @employee }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment