Flowdock
method

route_key

Importance_1
v3.1.0 - Show latest stable - 0 notes - Class: ActiveModel::Naming
route_key(record_or_class) public

Returns string to use while generating route names. It differs for namespaced models regarding whether it’s inside isolated engine.

For isolated engine: ActiveModel::Naming.route_key(Blog::Post) #=> posts

For shared engine: ActiveModel::Naming.route_key(Blog::Post) #=> blog_posts

Show source
Register or log in to add new notes.