search for: sites_controller

Displaying 2 results from an estimated 2 matches for "sites_controller".

Did you mean: site_controller
2012 Oct 21
1
load_missing_constant
...b-folder ''cms'' class Cms::Site < ActiveRecord::Base ..... the model is loaded correctly , 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 < Applicati...
2008 Apr 13
20
uninitialized constant
Hi guys, I''m part way through a RoR application, for some reason whenever I add new controllers (using scaffold) I get an uninitialized constant [name of controller] error. The first few controllers work fine, the only thing I can see that I''ve changed is the layout file (but scaffold creates a new layout for each controller so can''t see that being the problem). You