added link to Click Me topic in logged out menu, and made it the place you go when you log in

This commit is contained in:
Connor Turland 2013-02-03 20:20:29 -05:00
parent c29c1b9e5d
commit 8167708383
2 changed files with 3 additions and 2 deletions

View file

@ -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|

View file

@ -49,6 +49,7 @@
<li class="first"><a href="http://blog.metamaps.cc" target="_blank">About</a></li>
<li><a href="/request">Request Invite</a></li>
<li><%= link_to "Explore Maps", maps_url %></li>
<li><%= link_to "Tour", "/topics/260" %></li>
<li class="last"><%= link_to "Login", new_session_path, id: "Login" %></li>
</ul>
<% end %>