undefined method `model_name' for Symbol:Class #2

Open
markmcdonald51 opened this Issue Dec 27, 2010 · 1 comment

Comments

Projects
None yet
2 participants
@markmcdonald51

Sorry, I sent this to your email, meant to post it here.

I am trying to get this to work but it doesn't see to like the <%= render :super %> call as seen below.

Thanks in advance.

Started GET "/categories?assoc_id=1&association=categories&eid=companies_1_categories&parent_model=company&adapter=list_inline_adapter" for 127.0.0.1 at 2010-12-26 17:32:54 -0800
Processing by CategoriesController#index as /
Parameters: {"assoc_id"=>"1", "association"=>"categories", "eid"=>"companies_1_categories", "parent_model"=>"company", "adapter"=>"list_inline_adapter"}
Geokit is using the domain: localhost
Company Load (0.5ms) SELECT "companies".* FROM "companies" WHERE ("companies"."id" = 1) LIMIT 1
CACHE (0.0ms) SELECT "companies".* FROM "companies" WHERE ("companies"."id" = 1) LIMIT 1
SQL (0.2ms) SELECT COUNT(
) FROM "categories" WHERE ("categories".company_id = 1)
Category Load (5.0ms) SELECT "categories".
FROM "categories" WHERE ("categories".company_id = 1) ORDER BY position, "categories"."position" ASC
Item Load (15.2ms) SELECT "items".* FROM "items" WHERE ("items".category_id IN (1,2,3,4,5))
Rendered vendor/plugins/active_scaffold_sortable/frontends/default/views/_list_with_header.html.erb (3.5ms)
Rendered vendor/plugins/active_scaffold/frontends/default/views/list.html.erb (18.2ms)
Completed in 73ms

ActionView::Template::Error (undefined method `model_name' for Symbol:Class):
1: <%= render :super %>
2: <% if ActiveScaffold.js_framework == :prototype %>
3: <%= sortable_element *sort_params %>
4: <% elsif ActiveScaffold.js_framework == :jquery %>

Rendered /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.0ms)
SQL (3.1ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
SQL (0.4ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

SQL (0.5ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
SQL (0.5ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

SQL (0.5ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
SQL (0.3ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

SQL (0.3ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
SQL (0.3ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

SQL (0.3ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
SQL (0.5ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

SQL (0.5ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
SQL (0.3ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

SQL (0.3ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
SQL (0.3ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

SQL (0.3ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
SQL (0.3ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

Rendered /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1055.4ms)
Rendered /home/mark/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (1072.6ms)

@scambra

This comment has been minimized.

Show comment Hide comment
@scambra

scambra Dec 27, 2010

Member

ActiveScaffoldSortable has not been updated for rails 3, I'm not sure it will work. Also, a full backtrace is needed to find and fix an error

Member

scambra commented Dec 27, 2010

ActiveScaffoldSortable has not been updated for rails 3, I'm not sure it will work. Also, a full backtrace is needed to find and fix an error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment