Skip to content

Commit

Permalink
domain fix
Browse files Browse the repository at this point in the history
  • Loading branch information
barmstrong committed Jul 23, 2012
1 parent 49cc370 commit 2413fd7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion app/controllers/users_controller.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/views/account/domains/show.html.erb
Expand Up @@ -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 %>

Expand Down
3 changes: 0 additions & 3 deletions lib/authentication.rb
Expand Up @@ -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

Expand Down

0 comments on commit 2413fd7

Please sign in to comment.