Skip to content

Instantly share code, notes, and snippets.

@ugisozols
Created January 12, 2012 14:32
Show Gist options
  • Save ugisozols/1600844 to your computer and use it in GitHub Desktop.
Save ugisozols/1600844 to your computer and use it in GitHub Desktop.
Refinery::Blog routes
Refinery::Core::Engine.routes.draw do
# frontend
namespace :blog do
root :to => "posts#index"
resources :posts
end
# backend
namespace :blog, :path => "" do
namespace :admin, :path => "refinery/blog" do
root :to => "posts#index"
resources :posts
end
end
end
# refinery.blog_posts_path - frontend
# refinery.blog_admin_posts_path - backend
@dmoose
Copy link

dmoose commented Jan 16, 2012

Thank you for the explanation. I believe I understand the plan now. How long do you think it will take to get the new namespacing stable for core and the different engines like blog. I'm trying to deploy a reasonably current version of the code to a rails 3.1 site now, but have tripped over a few of the recent commits to core that have broken blog.

@parndt
Copy link

parndt commented Jan 16, 2012 via email

@dmoose
Copy link

dmoose commented Jan 16, 2012

I am getting up to speed on the code, but I'm afraid this might be too comprehensive a change for me to be very helpful. I'm not pushing just asking, and I'm happy to help where I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment