Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Section A.9. Naming

A.9. Naming

Naming is the module that you include in your class to get name type information for your model.

A.9.1. active_model/naming.rb

model_name

Returns an ActiveModel::Name for the object. Used by Action Pack to determine routing


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial