diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 2d344108..813a398c 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -22,10 +22,10 @@ class SessionsController < ApplicationController @user = User.new - @map = Map.first(:conditions => [ "id = ?", 5]) + @topic = Topic.find(260) if @map - respond_with(@user, @session, location: map_url(@map)) do |format| + respond_with(@user, @session, location: topic_url(@topic)) do |format| end else respond_with(@user, @session, location: root_url) do |format| diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index d6ac3a09..05b3b5d9 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -49,6 +49,7 @@