Skip to content

Instantly share code, notes, and snippets.

@taisyo7333
Created November 21, 2016 10:29
Show Gist options
  • Select an option

  • Save taisyo7333/6d8c527d3a2653e24665bb98b845b2eb to your computer and use it in GitHub Desktop.

Select an option

Save taisyo7333/6d8c527d3a2653e24665bb98b845b2eb to your computer and use it in GitHub Desktop.
ruby on rails + Docker
docker-compose run web rails g controller api/v1/something show  --no-assets --skip-template-engine --skip-route
      create  /controllers/api/v1/something_controller.rb
       route  namespace :api do
  namespace :v1 do
    get 'something/show'
    end
  end
      invoke  test_unit
      create    test/controllers/api/v1/something_controller_test.rb
      invoke  helper
      create    /helpers/api/v1/something_helper.rb
      invoke    test_unit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment