Closed khelal closed 13 years ago
Thanks a lot
Hi there,
Thanks for the quick reply. I've reinstalled the plugin and made sure I had no silencers (which I didn't have even before) and now I get a different error:
Started GET "/guru/tenders" for 127.0.0.1 at Tue Jan 18 21:38:24 +0400 2011
Processing by Admin::TendersController#index as HTML
AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE ("admin_users"."id" = 1) LIMIT 1
SQL (0.8ms) SELECT COUNT(*) FROM "tenders" WHERE ("tenders"."is_deleted" = 'f')
Tender Load (0.6ms) SELECT "tenders".* FROM "tenders" WHERE ("tenders"."is_deleted" = 'f') LIMIT 15 OFFSET 0
Company Load (0.4ms) SELECT "companies".* FROM "companies" WHERE ("companies"."id" IN (10001,10002,10000))
Rendered admin/tenders/list.html.haml within layouts/admin (5.1ms)
Completed in 52ms
ActionView::Template::Error (undefined method `model_name' for Symbol:Class):
6: %div.box
7: %h4.yellow Tenders Directory
8: %div.box-container
9: = render :super
10:
11: = content_for :sidebar do
12: %div.box
app/views/admin/tenders/list.html.haml:9:in `_app_views_admin_tenders_list_html_haml___1360672949_2352590600_0'
Rendered /Users/khelal/.rvm/gems/ree-1.8.7-2010.02@monaqasat3/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
Rendered /Users/khelal/.rvm/gems/ree-1.8.7-2010.02@monaqasat3/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (6524.3ms)
Rendered /Users/khelal/.rvm/gems/ree-1.8.7-2010.02@monaqasat3/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7245.5ms)
Hm, that does nt look like a complete stacktrace. Can you please recheck if line Rails.backtrace_cleaner.remove_silencers! is commented in backtrace_silencers.rb
In addition since you are using haml, please take a look at this issue as well: https://github.com/vhochstein/active_scaffold/issues/issue/55
Will close this issue. In case of any further questions.. please just reply.
Will close this issue. In case of any further questions.. please just reply.
Hello,
With the latest (https://github.com/vhochstein/active_scaffold/commit/e8987ae2c58ef483e78102647a9a758d073800ef) version of the plugin, I am always getting the following error:
ActionController::RoutingError (You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.length): app/controllers/admin/admin_users_controller.rb:5
It was working fine using the gem version (3.0.5). Any ideas?
Thx!