Skip to content

Instantly share code, notes, and snippets.

@tbuehlmann
Last active February 12, 2019 14:42
Show Gist options
  • Save tbuehlmann/b92f7b671754b56a98b65b09ca0fddc9 to your computer and use it in GitHub Desktop.
Save tbuehlmann/b92f7b671754b56a98b65b09ca0fddc9 to your computer and use it in GitHub Desktop.
# app/controllers/owner/reservations_controller.rb
class Owner::ReservationsController < ApplicationController
def create
# …
end
end
# app/controllers/reservations_controller.rb
class ReservationsController < ApplicationController
def create
# …
end
end
# config/routes.rb
Rails.application.routes.draw do
resources :reservations
namespace :owner do
resources :reservations
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment