List Info

Thread: Expected Asset.rb to define Asset and SystemExit errors




Expected Asset.rb to define Asset and SystemExit errors
country flaguser name
United States
2007-08-21 00:18:28
I'm receiving two different errors that take turns showing
up.

The first is "Expected Asset.rb to define Asset". 
This occurs when
trying to edit or create an article.  The stack trace is as
follows:

LoadError (Expected
/home/fiorini/mephisto/app/models/asset.rb to
define Asset):
    /vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:249:in
`load_missing_constant'
    /vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:452:in `const_missing'
    /vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:464:in `const_missing'
   
/vendor/rails/activerecord/lib/active_record/base.rb:1474:in

`compute_type'
   
/vendor/rails/activerecord/lib/active_record/reflection.rb:1
25:in
`send'
   
/vendor/rails/activerecord/lib/active_record/reflection.rb:1
25:in
`klass'
   
/vendor/rails/activerecord/lib/active_record/associations/
has_many_association.rb:155:in `construct_sql'
   
/vendor/rails/activerecord/lib/active_record/associations/
has_many_association.rb:6:in `initialize'
   
/vendor/rails/activerecord/lib/active_record/associations.rb
:
1048:in `new'
   
/vendor/rails/activerecord/lib/active_record/associations.rb
:
1048:in `assets'
    /app/controllers/admin/articles_controller.rb:134:in
`load_sections'

I was able to find a thread discussing this error, however
the
solution presented was to restart Mongrel.  Someone also
suggested
running script/console and typing "Asset" which,
for me, returns:

=> Asset(id: integer, content_type: string, filename:
string, size:
integer, parent_id: integer, thumbnail: string, width:
integer,
height: integer, site_id: integer, created_at: datetime,
title:
string, thumbnails_count: integer, user_id: integer)

Every once in a while, instead of the Asset error I get this
in my
log:

SystemExit (exit):
    /vendor/RubyInline-3.6.3/lib/inline.rb:70:in `exit'
    /vendor/RubyInline-3.6.3/lib/inline.rb:70:in `rootdir'
    /vendor/RubyInline-3.6.3/lib/inline.rb:84:in
`directory'
    /vendor/RubyInline-3.6.3/lib/inline.rb:258:in `so_name'
    /vendor/RubyInline-3.6.3/lib/inline.rb:292:in
`load_cache'
    /vendor/RubyInline-3.6.3/lib/inline.rb:659:in `inline'
    /vendor/image_science-1.1.3/lib/image_science.rb:84
   
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb
:27:in
`gem_original_require'
   
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb
:27:in
`require'
    /vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:495:in `require'
    /vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:342:in `new_constants_in'
    /vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:495:in `require'
   
/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu
/
processors/image_science_processor.rb:1
   
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb
:27:in
`gem_original_require'
   
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb
:27:in
`require'
    /vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:495:in `require'
    /vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:342:in `new_constants_in'
    /vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:495:in `require'
    /vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:104:in `require_or_load'
    /vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:248:in
`load_missing_constant'
    /vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:452:in `const_missing'
   
/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu
.rb:
76:in `const_get'
   
/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu
.rb:
76:in `has_attachment'
    /app/models/asset.rb:50

Any ideas what might be going on here?

Thanks!
Joe


--~--~---------~--~----~------------~-------~--~----~
Mephisto: http://mephistoblog.com |
Mephisto Help: http://mephisto.stikipad
.com

To post to this group, send email to MephistoBloggooglegroups.com
To unsubscribe from this group, send email to
MephistoBlog-unsubscribegooglegroups.com
For more options, visit this group at http
://groups-beta.google.com/group/MephistoBlog
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )