My favorites
▼
|
Sign in
substruct
Open-source Ruby on Rails E-Commerce
Project Home
Downloads
Wiki
Issues
Source
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
94
attachment: render_blog_posts_with_proper_template.patch
(761 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: /home/edmundo/workspace_aptana/trunk/vendor/plugins/substruct/app/controllers/content_nodes_controller.rb
===================================================================
--- /home/edmundo/workspace_aptana/trunk/vendor/plugins/substruct/app/controllers/content_nodes_controller.rb (revision 78)
+++ /home/edmundo/workspace_aptana/trunk/vendor/plugins/substruct/app/controllers/content_nodes_controller.rb (working copy)
@@ -21,7 +21,7 @@
@title = @content_node.title
end
# Render special template for blog posts
- if @content_node.type == Blog then
+ if @content_node.type == 'Blog' then
render(:template => 'content_nodes/blog_post')
else # Render basic template for regular pages
render(:layout => 'main')
Powered by
Google Project Hosting