Rails routing url name helpers

What basic settings are required to make sure routing url name helpers work?

For instance in my route 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

but the following doesn't seem to work:


I keep on getting the error

undefined local variable or method `new_refinery_news_url'

So I'm pretty sure something is missing in the way I have configured my application, who's main routing is in the RefineryCMS gem which was added in the Gemfile.

Any thoughts?


Had to use main_app.new_refinery_news_url instead.

Need Your Help

Google analytics is showing magento orders twice with different numbers

magento google-analytics magento-1.7 magento-1.4 magento-1.5

Since April, orders are being sent twice to google analytics, the strange thing is that one is OK with the format 9XXXXXXXXX, and another one is not fine with format 4XXX

EWS Powershell Exchange 2013 FindFolders returns 0 results

powershell exchange-server ews exchange-server-2013

I am currently trying to make this script run on exchange 2013 to convert folder types from IPF.IMAP to IPF.NOTE as the folders are not showing on mobile devices after being imported from Imap. This

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.