Answered my own question - the problem wasn't in ActiveScaffold at
all.  I had apparently mis-typed a model name in a find query
associated with the controller.  ActiveScaffold was overriding the
uninitialized constant error thrown in the model with an uninitialized
constant error at the controller and throwing a controller not found
error.  I had to completely comment out my ActiveScaffold
configurations to find it.  Somewhat maddening - if the original error
had simply been propagated up, it would have been a relatively quick
fix.  As it was, it took several hours to track down the real issue.

On Feb 15, 11:31 am, JeffR <[email protected]> wrote:
> I've spent about 3 hours this morning stepping through code and
> searching the web - hopefully someone here can point me in the right
> direction.
>
> I'm running ruby 1.8.6 and rails 2.3.8 with MySQL 5.2 and
> ActiveScaffold.
>
> I have a working application that is serving up all of my views with
> one exception.  We recently had a change of requirements which
> necessitated splitting one of our views into two separate pieces.
> This involved creating a new model/view/controller and altering an
> existing model/view/controller.  I implemented the model change,
> migrated the database and data and began altering the controllers and
> views to support.
>
> One view is working fine since the split, however, the view associated
> with the new model and controller is giving me fits.
>
> When I attempt to access that part of the application, ActiveScaffold
> is telling me it can't find my new controller.  I've updated routes to
> contain:
> map.resources :my_model_name, :active_scaffold => true
>
> In the controller I have:
> active_scaffold :my_model do |config|
>   #with all my configurations here
> end
>
> I have all my belongs_to, has_many, validates_uniqueness_of tags
> defined in the model.
>
> When debugging, everything seems to die in active_scaffold.rb on line
> 61 (self.active_scaffold_config.configure &block if block_given?).
> The specific error that is being thrown here is an uninitialized
> constant for the controller name.  I've double and triple checked all
> my file names and class definitions - everything looks ok to me and
> all the files are in the correct directory locations (app/controllers,
> app/models, app/helpers and app/views).
>
> Any ideas?  Happy to post code if you need more specifics.
>
> Thanks in advance
>
> Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to