Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

domain fix

  • Loading branch information...
commit 2413fd70695d2909f2c58a67dce04896ecc20bcf 1 parent 49cc370
Brian Armstrong authored
View
1  app/controllers/users_controller.rb
@@ -27,7 +27,6 @@ def create_with_forum
@user.save!
@forum.save!
@forum.add_owner(@user)
- puts 'HERE', @user.new_record?, @user.inspect, @user.errors.inspect
signin! @user, "Thanks for creating an account!"
else
try_login or render :new
View
2  app/views/account/domains/show.html.erb
@@ -25,7 +25,7 @@ example.com 174.129.212.2 A
</pre>
- <%= form_for @forum, :url => account_domain_path(@forum) do |f| %>
+ <%= form_for @forum, :url => account_domain_path do |f| %>
<%= render 'shared/error_messages', :target => @forum %>
View
3  lib/authentication.rb
@@ -3,12 +3,9 @@ def signin! user, notice = "Welcome back #{user.name}!"
session[:user_id] = user.id
@current_user = nil
path = verifications_path
- p 1
if user.verified?
- p 2
path = current_forum ? root_path : forums_path
end
- p 3, path
redirect_to path, :notice => notice
end

0 comments on commit 2413fd7

Please sign in to comment.
Something went wrong with that request. Please try again.