diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-03-27 21:26:37 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-03-27 21:26:37 +0530 |
commit | b42fbd3ecbc3e2c55987e0ae6331443dfd68d5b4 (patch) | |
tree | dd296efc489c22850d6cc7fa8d7a69da5e122b54 /guides/source/engines.textile | |
parent | 888fcca01b736b7f91041b7a6a1b162af6688f7a (diff) | |
parent | ae040ed6d8c48bf0cd6d5d6b434d60c9c8c27f81 (diff) | |
download | rails-b42fbd3ecbc3e2c55987e0ae6331443dfd68d5b4.tar.gz rails-b42fbd3ecbc3e2c55987e0ae6331443dfd68d5b4.tar.bz2 rails-b42fbd3ecbc3e2c55987e0ae6331443dfd68d5b4.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'guides/source/engines.textile')
-rw-r--r-- | guides/source/engines.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/engines.textile b/guides/source/engines.textile index 501d48eab8..047f9afd76 100644 --- a/guides/source/engines.textile +++ b/guides/source/engines.textile @@ -219,7 +219,7 @@ By default, the scaffold styling is not applied to the engine as the engine's la <%= stylesheet_link_tag "scaffold" %> </erb> -You can see what the engine has so far by running +rake db:migrate+ at the root of our engine to run the migration generated by the scaffold generator, and then running +rails server+. When you open +http://localhost:3000/blorgh/posts+ you will see the default scaffold that has been generated. +You can see what the engine has so far by running +rake db:migrate+ at the root of our engine to run the migration generated by the scaffold generator, and then running +rails server+ in +test/dummy+. When you open +http://localhost:3000/blorgh/posts+ you will see the default scaffold that has been generated. !images/engines_scaffold.png(Blank engine scaffold)! @@ -263,7 +263,7 @@ create test/fixtures/blorgh/comments.yml This generator call will generate just the necessary model files it needs, namespacing the files under a +blorgh+ directory and creating a model class called +Blorgh::Comment+. -To show the comments on a post, edit +app/views/posts/show.html.erb+ and add this line before the "Edit" link: +To show the comments on a post, edit +app/views/blorgh/posts/show.html.erb+ and add this line before the "Edit" link: <erb> <h3>Comments</h3> |