Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
controllerという名前の2つの単語を生成すると、FooBarrailsのようにコントローラーが作成され、foo_barこのようなパスはきれいではありません。少なくともパスは。にしたいFooBarです。
FooBar
foo_bar
可能?提案?
ルートが routes.rs でどのように定義されているかによって異なります。例えば:
# if you have named routes map.foobar '/foobar/:action', :controller => 'foobar' # if you have resources, this will generate map.resources :foo_bar, :as => 'foobar'
これは Rails 2.3.* 用で、Rails 3 では少し異なります。