Created
September 8, 2012 17:13
-
-
Save coderforhire/3677332 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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