Skip to content

Instantly share code, notes, and snippets.

@coderforhire
Created September 8, 2012 17:13
Show Gist options
  • Save coderforhire/3677332 to your computer and use it in GitHub Desktop.
Save coderforhire/3677332 to your computer and use it in GitHub Desktop.
def create
@subscription = Subscription.new(params[:subscription])
@user = User.new(params[:user])
if @user.save
redirect_to "http://google.com"
# @subscription.update_attributes[:user_id => @user.id]
# redirect_to @subscription, :notice => "Thank you for subscribing!"
else
respond_to do |format|
format.html { render action: "new", notice: @user.errors }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment