From 8167708383f2d19e527beefbbef9e8f662431941 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Sun, 3 Feb 2013 20:20:29 -0500 Subject: [PATCH] added link to Click Me topic in logged out menu, and made it the place you go when you log in --- app/controllers/sessions_controller.rb | 4 ++-- app/views/layouts/application.html.erb | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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 @@
  • About
  • Request Invite
  • <%= link_to "Explore Maps", maps_url %>
  • +
  • <%= link_to "Tour", "/topics/260" %>
  • <%= link_to "Login", new_session_path, id: "Login" %>
  • <% end %>