What basic settings are needed to make sure routing url name helpers work?
For example, on my way, I have the following:
Blog::Application.routes.draw do resources :news, :as => :news_items, :controller => :news_items, :only => [:show, :index] scope :module => "refinery" do scope(:path => 'refinery', :as => 'admin', :module => 'Admin') do resources :news, :except => :show, :as => :news_items, :controller => :news_items end end end
but the following does not work:
new_refinery_news_url
I keep getting an error
undefined local variable or method `new_refinery_news_url '
So, I'm pretty sure that something is missing in how I set up my application, the main routing of which is in the RefineryCMS stone, which was added to the Gemfile.
Any thoughts?
source share