search for: aslking

Displaying 1 result from an estimated 1 matches for "aslking".

Did you mean: asking
2012 Oct 21
1
load_missing_constant
...rrectly , checked in console: application.rb config.autoload_paths += Dir["#{config.root}/app/models/**/"] console >Cms::Site.all => [] Now trying to access this model from a sites_controller ( in backoffice/cms subfolder, action: index ) I get the load_missing_constant error, aslking for the model to define Site and not Cms::Site... where am I wrong ? or did I missed any initializing parameter ? backoffice/cms/sites_controller.rb class Backoffice::Cms::SitesController < ApplicationController def index @sites = Cms::Site.all end LoadError in Backoffice::Cms::SitesCon...