Skip to content

Commit

Permalink
adding login/logout link to index page, fixed active_support warning [#…
Browse files Browse the repository at this point in the history
…978 state:resolved]
  • Loading branch information
larsburgess committed Dec 7, 2009
1 parent 36f1f41 commit 0b56fc4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -87,4 +87,5 @@ platform/android/**/default.properties
*.perspectivev3

.gvide

*.gem
Manifest.txt
2 changes: 1 addition & 1 deletion 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
Expand Down
5 changes: 5 additions & 0 deletions res/generators/templates/application/app/index.erb
Expand Up @@ -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.