Skip to content

Instantly share code, notes, and snippets.

@carllerche
Forked from wycats/gist:158824
Created July 30, 2009 18:16
Show Gist options
  • Save carllerche/158826 to your computer and use it in GitHub Desktop.
Save carllerche/158826 to your computer and use it in GitHub Desktop.
def create
@user = User.new
respond_with(@user) do
format.xml
format.html do
if @user.saved?
format.html { redirect_to(@user) }
else
render :action => "new"
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment