Permalink
Browse files

domain fix

  • Loading branch information...
1 parent 49cc370 commit 2413fd70695d2909f2c58a67dce04896ecc20bcf Brian Armstrong committed Jul 23, 2012
Showing with 1 addition and 5 deletions.
  1. +0 −1 app/controllers/users_controller.rb
  2. +1 −1 app/views/account/domains/show.html.erb
  3. +0 −3 lib/authentication.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
@@ -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 %>
@@ -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.