Skip to content

Commit

Permalink
Alphabetize static actions and routes
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinlaking authored and carols10cents committed Nov 22, 2012
1 parent 59ca3a0 commit 683070b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
19 changes: 10 additions & 9 deletions app/controllers/static_controller.rb
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
11 changes: 5 additions & 6 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 683070b

Please sign in to comment.