diff options
author | Mikhail Dieterle <MikDiet@gmail.com> | 2012-04-04 00:46:43 +0800 |
---|---|---|
committer | Mikhail Dieterle <MikDiet@gmail.com> | 2012-04-04 00:46:43 +0800 |
commit | 1827bc9524aef939615395eb153a9f5f093735cc (patch) | |
tree | e64e1c3be0cb4c755e970738fd8fd54c421b61ec /guides/source/engines.textile | |
parent | d586b07f9eb2d266efef61eaab5d2b57ecef149d (diff) | |
download | rails-1827bc9524aef939615395eb153a9f5f093735cc.tar.gz rails-1827bc9524aef939615395eb153a9f5f093735cc.tar.bz2 rails-1827bc9524aef939615395eb153a9f5f093735cc.zip |
also <text> replaced by <plain>
Diffstat (limited to 'guides/source/engines.textile')
-rw-r--r-- | guides/source/engines.textile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/guides/source/engines.textile b/guides/source/engines.textile index 4ae61fde42..25c4faf648 100644 --- a/guides/source/engines.textile +++ b/guides/source/engines.textile @@ -355,11 +355,11 @@ end This is the final part required to get the new comment form working. Displaying the comments however, is not quite right yet. If you were to create a comment right now you would see this error: -<text> +<plain> Missing partial blorgh/comments/comment with {:handlers=>[:erb, :builder], :formats=>[:html], :locale=>[:en, :en]}. Searched in: * "/Users/ryan/Sites/side_projects/blorgh/test/dummy/app/views" * "/Users/ryan/Sites/side_projects/blorgh/app/views" -</text> +</plain> The engine is unable to find the partial required for rendering the comments. Rails has looked firstly in the application's (+test/dummy+) +app/views+ directory and then in the engine's +app/views+ directory. When it can't find it, it will throw this error. The engine knows to look for +blorgh/comments/comment+ because the model object it is receiving is from the +Blorgh::Comment+ class. @@ -536,9 +536,9 @@ Finally, the author's name should be displayed on the post's page. Add this code By outputting +@post.author+ using the +<%=+ tag the +to_s+ method will be called on the object. By default, this will look quite ugly: -<text> +<plain> #<User:0x00000100ccb3b0> -</text> +</plain> This is undesirable and it would be much better to have the user's name there. To do this, add a +to_s+ method to the +User+ class within the application: |