Skip to content

Instantly share code, notes, and snippets.

@themactep
Created March 10, 2010 02:04
Show Gist options
  • Save themactep/327421 to your computer and use it in GitHub Desktop.
Save themactep/327421 to your computer and use it in GitHub Desktop.
script/generate scaffold RedRose vs script/generate scaffold red_rose
<%= controller_name %> # RedRoses red_roses !!
<%= controller_class_path %> #
<%= controller_file_path %> # red_roses red_roses
<%= controller_class_nesting %> #
<%= controller_class_nesting_depth %> # 0 0
<%= controller_class_name %> # RedRoses RedRoses
<%= controller_underscore_name %> # red_roses red_roses
<%= controller_singular_name %> # RedRose red_rose !!
<%= controller_plural_name %> # red_roses red_roses
script/generate scaffold Red/Rose vs script/generate scaffold red/rose
<%= controller_name %> # Red/Roses red/roses !!
<%= controller_class_path %> # red red
<%= controller_file_path %> # red/roses red/roses
<%= controller_class_nesting %> # Red Red
<%= controller_class_nesting_depth %> # 1 1
<%= controller_class_name %> # Red::Roses Red::Roses
<%= controller_underscore_name %> # roses roses
<%= controller_singular_name %> # Rose rose !!
<%= controller_plural_name %> # roses roses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment