I'm getting the following error within the preview pane with the
page_preview extension. I'm running 0.8.2 and installed commit
55031c85cab1718b83a6. Any ideas?

    NameError in Admin/previewController#index
    uninitialized constant Preview

    
/myproject/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:443:in
`load_missing_constant'
    
/myproject/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in
`const_missing'
    
/myproject/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in
`const_missing'
    
/myproject/vendor/radiant/vendor/rails/activesupport/lib/active_support/inflector.rb:361:in
`constantize'
    
/myproject/vendor/radiant/vendor/rails/activesupport/lib/active_support/inflector.rb:360:in
`each'
    
/myproject/vendor/radiant/vendor/rails/activesupport/lib/active_support/inflector.rb:360:in
`constantize'
    
/myproject/vendor/radiant/vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb:162:in
`constantize'
    /myproject/vendor/radiant/app/controllers/admin/resource_controller.rb:11:in
`model_class'
    /myproject/vendor/radiant/app/controllers/admin/resource_controller.rb:88:in
`model_class'
    
/myproject/vendor/radiant/app/controllers/admin/resource_controller.rb:114:in
`load_models'
    
/myproject/vendor/radiant/vendor/rails/activesupport/lib/active_support/callbacks.rb:178:in
`send'
    
/myproject/vendor/radiant/vendor/rails/activesupport/lib/active_support/callbacks.rb:178:in
`evaluate_method'
    
/myproject/vendor/radiant/vendor/rails/activesupport/lib/active_support/callbacks.rb:166:in
`call'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:225:in
`call'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:629:in
`run_before_filters'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:615:in
`call_filters'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:610:in
`perform_action_without_benchmark'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
    
/myproject/vendor/radiant/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in
`ms'
    /.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/benchmark.rb:308:in `realtime'
    
/myproject/vendor/radiant/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in
`ms'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in
`perform_action_without_flash'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/flash.rb:146:in
`perform_action'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/base.rb:532:in
`send'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/base.rb:532:in
`process_without_filters'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:606:in
`sass_old_process'
    /myproject/vendor/radiant/vendor/plugins/haml/lib/sass/plugin/rails.rb:19:in
`process'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/base.rb:391:in
`process'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/base.rb:386:in
`call'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:437:in
`call'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:87:in
`dispatch'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:121:in
`_call'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130:in
`build_middleware_stack'
    
/myproject/vendor/radiant/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in
`call'
    
/myproject/vendor/radiant/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in
`call'
    
/myproject/vendor/radiant/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
`cache'
    
/myproject/vendor/radiant/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in
`cache'
    
/myproject/vendor/radiant/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in
`call'
    
/myproject/vendor/radiant/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
`call'
    /myproject/vendor/radiant/vendor/rack-cache/lib/rack/cache/context.rb:123:in
`forward'
    /myproject/vendor/radiant/vendor/rack-cache/lib/rack/cache/context.rb:130:in
`pass'
    /myproject/vendor/radiant/vendor/rack-cache/lib/rack/cache/context.rb:138:in
`invalidate'
    /myproject/vendor/radiant/vendor/rack-cache/lib/rack/cache/context.rb:69:in
`call!'
    /myproject/vendor/radiant/vendor/rack-cache/lib/rack/cache/context.rb:50:in
`call'
    /.rvm/gems/ruby-1.8.7-p330@rails234/gems/rack-1.0.1/lib/rack/head.rb:9:in
`call'
    
/.rvm/gems/ruby-1.8.7-p330@rails234/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in
`call'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in
`call'
    
/myproject/vendor/radiant/vendor/rails/railties/lib/rails/rack/metal.rb:47:in
`call'
    /myproject/vendor/extensions/referrals/lib/referrals.rb:10:in `call'
    /myproject/vendor/extensions/referrals/lib/referrals.rb:10:in `call'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:93:in
`call'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/failsafe.rb:26:in
`call'
    /.rvm/gems/ruby-1.8.7-p330@rails234/gems/rack-1.0.1/lib/rack/lock.rb:11:in
`call'
    /.rvm/gems/ruby-1.8.7-p330@rails234/gems/rack-1.0.1/lib/rack/lock.rb:11:in
`synchronize'
    /.rvm/gems/ruby-1.8.7-p330@rails234/gems/rack-1.0.1/lib/rack/lock.rb:11:in
`call'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:114:in
`call'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/reloader.rb:34:in
`run'
    
/myproject/vendor/radiant/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:108:in
`call'
    
/myproject/vendor/radiant/vendor/rails/railties/lib/rails/rack/static.rb:31:in
`call'
    /.rvm/gems/ruby-1.8.7-p330@rails234/gems/rack-1.0.1/lib/rack/urlmap.rb:46:in
`call'
    /.rvm/gems/ruby-1.8.7-p330@rails234/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in
`each'
    /.rvm/gems/ruby-1.8.7-p330@rails234/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in
`call'
    
/myproject/vendor/radiant/vendor/rails/railties/lib/rails/rack/log_tailer.rb:17:in
`call'
    
/.rvm/gems/ruby-1.8.7-p330@rails234/gems/rack-1.0.1/lib/rack/content_length.rb:13:in
`call'
    
/.rvm/gems/ruby-1.8.7-p330@rails234/gems/rack-1.0.1/lib/rack/handler/webrick.rb:50:in
`service'
    /.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/webrick/httpserver.rb:104:in
`service'
    /.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    /.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/webrick/server.rb:173:in
`start_thread'
    /.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/webrick/server.rb:162:in `start'
    /.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/webrick/server.rb:162:in
`start_thread'
    /.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/webrick/server.rb:95:in `start'
    /.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/webrick/server.rb:92:in `each'
    /.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/webrick/server.rb:92:in `start'
    /.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/webrick/server.rb:23:in `start'
    /.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/webrick/server.rb:82:in `start'
    
/.rvm/gems/ruby-1.8.7-p330@rails234/gems/rack-1.0.1/lib/rack/handler/webrick.rb:14:in
`run'
    /myproject/vendor/radiant/vendor/rails/railties/lib/commands/server.rb:111
    
/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
`gem_original_require'
    
/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
`require'
    script/server:3

Reply via email to