Created
July 16, 2012 06:02
-
-
Save tkawa/3120981 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GroupsController < AppController | |
resources_path 'users/groups', 'my/groups' | |
def index | |
end | |
def show | |
end | |
def update | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Class method and HTTP-style methods. | |
class ReportsController < AppController | |
before_filter :authenticate | |
get "/reports" do | |
end | |
get "/reports/:id" do | |
end | |
put "/reports/:id" do | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hoge::Application.routes.draw do | |
namespace :admin do | |
namespace :special do | |
resources :licenses | |
end | |
resources :users | |
end | |
resources :users | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UsersController < AppController | |
resources_path 'users' | |
resource_path 'my' | |
def index | |
end | |
def show | |
end | |
def update | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment