Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Rails Scaffold Generator Name Methods

DZone's Guide to

Rails Scaffold Generator Name Methods

·
Free Resource
// Useful when customizing your own scaffold generator
// 


eg. ./script/generate scaffold Scm::Orders

controller_plural_name__________________orders
controller_file_name____________________orders
controller_table_name___________________orders
controller_class_path___________________scm
controller_class_name___________________Scm::Orders
controller_file_path____________________scm/orders
controller_class_nesting________________Scm
controller_name_________________________Scm::Orders
controller_class_nesting_depth__________1
controller_underscore_name______________orders
controller_singular_name________________Order
name____________________________________Scm::Order
class_name______________________________Scm::Order
model_name______________________________Order
singular_name___________________________order
plural_name_____________________________orders
table_name______________________________scm_orders
class_path______________________________scm
file_path_______________________________scm/order
class_nesting___________________________Scm
class_nesting_depth_____________________1
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}