Permalink
Browse files

Alphabetize static actions and routes

  • Loading branch information...
1 parent 59ca3a0 commit 683070b8a6caec3d0d7d396f81ced4c69dee7ee1 @gavinlaking gavinlaking committed with carols10cents Nov 11, 2012
Showing with 15 additions and 15 deletions.
  1. +10 −9 app/controllers/static_controller.rb
  2. +5 −6 config/routes.rb
View
19 app/controllers/static_controller.rb
@@ -1,15 +1,6 @@
class StaticController < ApplicationController
before_filter :require_user, :only => :follow
- def homepage
- @list_class = ""
- render :layout => false
- end
-
- def open_source
- @title = "open source"
- end
-
def about
@title = "about us"
end
@@ -24,4 +15,14 @@ def follow
def help
end
+
+ def homepage
+ @list_class = ""
+ render :layout => false
+ end
+
+ def open_source
+ @title = "open source"
+ end
+
end
View
11 config/routes.rb
@@ -7,13 +7,12 @@
match "/login", :to => "sessions#new"
match "/logout", :to => "sessions#destroy", :via => :post
- match "/follow", :to => "static#follow", :via => :get
-
# Static
- match "contact" => "static#contact"
- match "about" => "static#about"
- match "open_source" => "static#open_source"
- match "help" => "static#help"
+ match "about", :to => "static#about"
+ match "contact", :to => "static#contact"
+ match "follow", :to => "static#follow", :via => :get
+ match "help", :to => "static#help"
+ match "open_source", :to => "static#open_source"
# External Auth
# If we add more valid auth providers, they will need to be added

0 comments on commit 683070b

Please sign in to comment.