2020-04-12から1日間の記事一覧
namespace :api do scope module: 'weather' do get 'weather' end end URLが/api/weatherでapi/weather_controllerのweatherアクションにルーティングしたい場合はこうやってかく namespaceがURLもcontrollerも追加、scope moduleはURLだけ scopeはcontroll…
namespace :api do scope module: 'weather' do get 'weather' end end URLが/api/weatherでapi/weather_controllerのweatherアクションにルーティングしたい場合はこうやってかく namespaceがURLもcontrollerも追加、scope moduleはURLだけ scopeはcontroll…