diff options
author | Sebastian Martinez <sebastian@wyeworks.com> | 2011-04-13 15:42:44 -0300 |
---|---|---|
committer | Sebastian Martinez <sebastian@wyeworks.com> | 2011-04-13 15:42:44 -0300 |
commit | 21c03a2f48b4ac9acb6814aa3686bc7a6863120d (patch) | |
tree | 407fa6fb8ba96d043c4e900a664a0ad4e70823e7 /railties/guides | |
parent | b2cb99125138bcec3206562a1447991bb3fef63d (diff) | |
download | rails-21c03a2f48b4ac9acb6814aa3686bc7a6863120d.tar.gz rails-21c03a2f48b4ac9acb6814aa3686bc7a6863120d.tar.bz2 rails-21c03a2f48b4ac9acb6814aa3686bc7a6863120d.zip |
Update guides with new scaffold.css path
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/generators.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/generators.textile b/railties/guides/source/generators.textile index d32ba48003..44c15be7bf 100644 --- a/railties/guides/source/generators.textile +++ b/railties/guides/source/generators.textile @@ -190,7 +190,7 @@ $ rails generate scaffold User name:string invoke test_unit create test/unit/helpers/users_helper_test.rb invoke stylesheets - create public/stylesheets/scaffold.css + create app/assets/stylesheets/scaffold.css </shell> Looking at this output, it's easy to understand how generators work in Rails 3.0 and above. The scaffold generator doesn't actually generate anything, it just invokes others to do the work. This allows us to add/replace/remove any of those invocations. For instance, the scaffold generator invokes the scaffold_controller generator, which invokes erb, test_unit and helper generators. Since each generator has a single responsibility, they are easy to reuse, avoiding code duplication. |