lib/generators/comfy/blog/blog_generator.rb in comfy_blog-1.0.0 vs lib/generators/comfy/blog/blog_generator.rb in comfy_blog-1.1.0
- old
+ new
@@ -29,11 +29,11 @@
copy_file 'config/initializers/comfy_blog.rb',
'config/initializers/comfy_blog.rb'
end
def generate_routing
- route_string = " ComfyBlog::Routing.admin :path => '/admin'\n"
- route_string << " ComfyBlog::Routing.content :path => '/blog'\n"
+ route_string = " comfy_route :blog_admin, :path => '/admin'\n"
+ route_string << " comfy_route :blog, :path => '/blog'\n"
route route_string[2..-1]
end
def generate_views
directory 'app/views/blog', 'app/views/blog'
\ No newline at end of file