search for: sitescontrol

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

2012 Oct 21
1
load_missing_constant
...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::SitesController#index Expected /Users/..../app/models/cms/site.rb to define Site (activesupport (3.2.8) lib/active_support/dependencies.rb:503:in `load_missing_constant'') -- You receive...
2007 Nov 21
6
How thorough do you test?
Testing models is great and would not be able to create anything without it, but I am finding testing the controllers and views is a pain. Rest based controllers don''t seem to change that much when compared to the auto-generated code that obviously works. As for views I fail to see why testing it with a mock model does anything. Nothing is ensuring that when changes are made to the