Skip to content

Instantly share code, notes, and snippets.

@BrunoMVPCosta
Last active February 22, 2017 03:41
Show Gist options
  • Save BrunoMVPCosta/8cb84a647680c61d34665d1993761754 to your computer and use it in GitHub Desktop.
Save BrunoMVPCosta/8cb84a647680c61d34665d1993761754 to your computer and use it in GitHub Desktop.
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
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