Skip to content

Instantly share code, notes, and snippets.

@workmad3
Created August 13, 2015 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save workmad3/cc60ffdcc6ebb9227163 to your computer and use it in GitHub Desktop.
Save workmad3/cc60ffdcc6ebb9227163 to your computer and use it in GitHub Desktop.
class Admin::BottlesController < Admin::ApplicationController
# Full admin CRUD here
end
class BottlesController < ApplicationController
# Only index & view for normal user here
end
Rails.application.routes.draw do
namespace :admin do
resources :bottles
end
resources :bottles, only: [:index, :show]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment