Last active
February 22, 2017 03:41
-
-
Save BrunoMVPCosta/8cb84a647680c61d34665d1993761754 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
scope "/", Rumbl do | |
pipe_through :browser # Use the default browser stack | |
get "/", PageController, :index | |
resources "/users", UserController, only: [:index, :show, :new, :create] | |
resources "/sessions", SessionController, only: [:new, :create, :delete] | |
end | |
scope "/manage", Rumbl do | |
pipe_through [:browser, :authenticate_user] | |
resources "/videos", VideoController | |
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
scope "/", Rumbl do | |
pipe_through :browser # Use the default browser stack | |
get "/", PageController, :index | |
resources "/users", UserController, only: [:index, :new, :show, :create] | |
resources "/sessions", SessionController, only: [:new, :create, :delete] | |
scope "/manage" do | |
pipe_through [:browser, :authenticate_user] | |
resources "/videos", VideoController | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment