[Note] Rails3 routing confirmation

Introduction

This time, as the title suggests, I will leave the method of checking the routing in Rails. Since the version of the system I'm touching is old, I couldn't check it with a web browser and it got stuck ...

environment

Rails 3.0.19 docker-compose version 2

Check with a command from the Docker container

1. Start the service container

docker-compose up -d

-d: Detached mode: Run container in background and show new container name

2. Enter the container where rails is installed (this time app container)

docker-compose run app /bin/bash

The command changes depending on the version of docker or Rails. The most recent commands are as follows.

docker-compose exec app bash

3. Execute the routing confirmation command

[root@[Container ID] trunk]# bundle exec rake routes

If you use the above command, all the records will be output and it will be difficult to see, so it is easier to see if you use the grep command.

[root@[Container ID] trunk]# bundle exec rake routes | grep [Character string you want to narrow down]

reference

Docker Document Japaneseization Project [docker-compose command] (https://qiita.com/nikadon/items/995c5705ff1171f7484d)

Recommended Posts

[Note] Rails3 routing confirmation
About Rails routing
Rails Routing Basics
Rails Credentials Note
Rails 6.0 Routing Summary
[Note] Rails error list
Catch Rails Routing Error
[Rails] devise-related routing summary
Understand Rails "shallow" routing
[Rails] Complete routing settings
Organize Rails routing using draw
Rails routing controller view relationship
How to write Rails routing
Rails singular resource routing by resource
[Rails] How to use devise (Note)
Note
[Personal note] Rails DB index consideration
[Rails] Summary of complicated routing configurations
Note
[Ruby on Rails] Confirmation page creation
Ruby On Rails devise routing conflict
routing
[Rails] "Input"-> "Confirmation screen"-> "Save"-> "View"
[Ruby on Rails] 1 model CRUD (Routing Main)
Rails / users /: id / to / {random_srting}: Dedefault Routing
[rails] How to configure routing in resources
[Note] How to use Rails 6 Devise + cancancan