Skip to content

Commit

Permalink
Fixing subdomains
Browse files Browse the repository at this point in the history
  • Loading branch information
wengzilla committed May 25, 2012
1 parent f367925 commit 4368212
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/growls_controller.rb
Expand Up @@ -5,7 +5,7 @@ def index
subdomain = request.subdomain
@user = User.where{display_name.matches subdomain}.first

return redirect_to home_path, :notice => "That user was not found."
return redirect_to home_path, :notice => "That user was not found." unless @user

@growls = @user.get_growls(params[:type]).page(params[:page])
end
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/points_spec.rb
Expand Up @@ -7,7 +7,7 @@
context "User is logged in" do
before(:each) do
Capybara.app_host = "http://#{user.display_name}.hungrlr.dev"
login(user2)
login(user)
visit root_path
end
it "adds a point when the user clicks it" do
Expand Down

0 comments on commit 4368212

Please sign in to comment.