Skip to content

Instantly share code, notes, and snippets.

@stan
Forked from anonymous/gist:2086498
Last active August 29, 2015 14:08
Show Gist options
  • Save stan/9cc12df3ea905c4fb3f7 to your computer and use it in GitHub Desktop.
Save stan/9cc12df3ea905c4fb3f7 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous revised this gist Mar 19, 2012. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,4 @@
    root :to => 'teachers/dashboards#show', :constraints => lambda{ |req| req.session['warden.user.user.key'][0] == 'Teacher' }
    root :to => 'students/dashboards#show', :constraints => lambda{ |req| req.session['warden.user.user.key'][0] == 'Student' }
    authenticated do
    root :to => 'teachers/dashboards#show', :constraints => lambda{ |req| req.session['warden.user.user.key'][0] == 'Teacher' }
    root :to => 'students/dashboards#show', :constraints => lambda{ |req| req.session['warden.user.user.key'][0] == 'Student' }
    end
  2. @invalid-email-address Anonymous created this gist Mar 19, 2012.
    2 changes: 2 additions & 0 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    root :to => 'teachers/dashboards#show', :constraints => lambda{ |req| req.session['warden.user.user.key'][0] == 'Teacher' }
    root :to => 'students/dashboards#show', :constraints => lambda{ |req| req.session['warden.user.user.key'][0] == 'Student' }