Flowdock
method

singular_class_name

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 1 note - Class: ActionController::RecordIdentifier

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

singular_class_name(record_or_class) public

Returns the singular class name of a record or class. Examples:

  singular_class_name(post)             # => "post"
  singular_class_name(Highrise::Person) # => "highrise_person"
Show source
Register or log in to add new notes.
March 19, 2010
1 thank

singular_class_name method missing

If this method is undefined in ActionView::Base, add to your ApplicationController:

class ApplicationController < ActionController::Base
  helper_method :singular_class_name
end