エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
How to draw cleanly controller specific routes. - English As A Programming Language - s21g
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
How to draw cleanly controller specific routes. - English As A Programming Language - s21g
I think that the complex Rails applications such as maintained over years tend to have messy conf... I think that the complex Rails applications such as maintained over years tend to have messy config/routes. Today I'd like to introduce a simple way to keep them clean. The way is really simple. Use with_options for each controller with prefix options. 1 map.with_options(:controller => 'posts', 2 :name_prefix => 'posts_', 3 :path_prefix => 'posts') do |posts| 4 # posts_rss_path => 'posts/rss'
2008/03/16 リンク