Flowdock
method

singular_route_key

Importance_1
Ruby on Rails latest stable (v4.2.7) - 0 notes - Class: ActiveModel::Naming

Not found

The exact documentation you were looking for could not be found. Here is the best guess.

singular_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.singular_route_key(Blog::Post) # => "post"

# For shared engine:
ActiveModel::Naming.singular_route_key(Blog::Post) # => "blog_post"
Show source
Register or log in to add new notes.