Permalink
Browse files

adding login/logout link to index page, fixed active_support warning …

…[#978 state:resolved]
  • Loading branch information...
1 parent 36f1f41 commit 0b56fc4fbcaa5dbdf4ddb353e31f7579f5109cb4 @larsburgess larsburgess committed Dec 7, 2009
Showing with 8 additions and 2 deletions.
  1. +2 −1 .gitignore
  2. +1 −1 res/generators/rhogen.rb
  3. +5 −0 res/generators/templates/application/app/index.erb
View
3 .gitignore
@@ -87,4 +87,5 @@ platform/android/**/default.properties
*.perspectivev3
.gvide
-
+*.gem
+Manifest.txt
View
2 res/generators/rhogen.rb
@@ -1,6 +1,6 @@
require 'rubygems'
require 'templater'
-require 'activesupport'
+require 'active_support'
require File.dirname(__FILE__) + '/../../lib/rhodes'
module Rhogen
View
5 res/generators/templates/application/app/index.erb
@@ -6,4 +6,9 @@
<ul id="home" selected="true" title="<%= class_name %>">
<li>Add links here...</li>
+ <% if SyncEngine::logged_in > 0 %>
+ <li><%=link_to "Logout", :action => :logout%></li>
+ <% else %>
+ <li><%=link_to "Login", :action => :login%></li>
+ <% end %>
</ul>

0 comments on commit 0b56fc4

Please sign in to comment.