LoadError (Expected /home/enterpr/mephisto/app/mod els/asset.rb to define Asset):
The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
bartee <bar... @gmail.com>
Date: Sun, 6 Jul 2008 14:21:29 -0700 (PDT)
Local: Sun, Jul 6 2008 5:21 pm
Subject: LoadError (Expected /home/enterpr/mephisto/app/models/asset. rb to define Asset):
Mephisto 0.8 ( drax ) installed at HostingRails using rails 2.0.2
some parts of mephisto work.
Assest and Create Article will fail with the error below
I have been told this may be missing gems at HostingRails, but I am
new and not sure how to find this.
Processing ArticlesController#new (for 74.184.148.126 at 2008-07-06
15:19:28) [GET]
Session ID:
BAh7CDoOcmV0dXJuX3RvMDoJdXNlcmkHIgpmbGFzaElDOidBY3Rpb25Db250%0Acm9sbGVyOjpG bGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--665beee1c0a0f7f213ffa4a654d9b1b367734 65f
Parameters: {"action"=>"new", "controller"=>"admin/articles"}
LoadError (Expected /home/enterpr/mephisto/app/models/asset.rb to
define Asset):
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:249:in `load_missing_constant'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:453:in `const_missing'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:465:in `const_missing'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
active_record/base.rb:1748:in `compute_type'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
active_record/reflection.rb:125:in `send'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
active_record/reflection.rb:125:in `klass'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
active_record/associations/has_many_association.rb:152:in
`construct_sql'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
active_record/associations/has_many_association.rb:6:in `initialize'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
active_record/associations.rb:1032:in `new'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
active_record/associations.rb:1032:in `assets'
/app/controllers/admin/articles_controller.rb:110:in
`load_sections'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/filters.rb:469:in `send!'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/filters.rb:469:in `call'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/filters.rb:441:in `run'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/filters.rb:716:in `run_before_filters'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/filters.rb:695:in `call_filters'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/filters.rb:689:in `perform_action_without_benchmark'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/rescue.rb:199:in `perform_action_without_caching'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/caching.rb:678:in `perform_action'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
active_record/connection_adapters/abstract/query_cache.rb:33:in
`cache'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
active_record/query_cache.rb:8:in `cache'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/caching.rb:677:in `perform_action'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/base.rb:524:in `send'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/base.rb:524:in `process_without_filters'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/filters.rb:685:in
`process_without_session_management_support'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/session_management.rb:123:in `process'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/base.rb:388:in `process'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/dispatcher.rb:171:in `handle_request'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/dispatcher.rb:115:in `dispatch'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/dispatcher.rb:126:in `dispatch_cgi'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/dispatcher.rb:9:in `dispatch'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:
101:in `process_request'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:
149:in `with_signal_handler'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:
99:in `process_request'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:
77:in `process_each_request'
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in
`each_cgi'
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in
`each'
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in
`each_cgi'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:
76:in `process_each_request'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:
50:in `process!'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:
24:in `process!'
dispatch.fcgi:24
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
"Rick Olson" <technowee... @gmail.com>
Date: Sun, 6 Jul 2008 15:07:08 -0700
Local: Sun, Jul 6 2008 6:07 pm
Subject: Re: [Mephisto] LoadError (Expected /home/enterpr/mephisto/app/models/asset. rb to define Asset):
On 7/6/08, bartee <bar
... @gmail.com> wrote:
> Mephisto 0.8 ( drax ) installed at HostingRails using rails 2.0.2
> some parts of mephisto work.
> Assest and Create Article will fail with the error below
> I have been told this may be missing gems at HostingRails, but I am > new and not sure how to find this.
Load asset.rb in script/console to see what gems you are missing:
$ script/console production
>> Asset
--
Rick Olson
http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.com
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
bartee <bar... @gmail.com>
Date: Sun, 6 Jul 2008 16:31:30 -0700 (PDT)
Local: Sun, Jul 6 2008 7:31 pm
Subject: Re: LoadError (Expected /home/enterpr/mephisto/app/models/asset. rb to define Asset):
Here is what I got... I had tried earlier.. Maybe I am doing something
wrong...
[~/mephisto]$ ruby script/console production
Loading production environment (Rails 2.0.2)
>> Asset
=> 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)
On Jul 6, 6:07 pm, "Rick Olson" <technowee
... @gmail.com> wrote:
> On 7/6/08, bartee <bar
... @gmail.com> wrote:
> > Mephisto 0.8 ( drax ) installed at HostingRails using rails 2.0.2
> > some parts of mephisto work.
> > Assest and Create Article will fail with the error below
> > I have been told this may be missing gems at HostingRails, but I am
> > new and not sure how to find this.
> Load asset.rb in script/console to see what gems you are missing:
> $ script/console production
> >> Asset
> --
> Rick Olsonhttp://lighthouseapp.comhttp://weblog.techno-weenie.nethttp://mephist...
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
bartee <bar... @gmail.com>
Date: Sun, 6 Jul 2008 17:16:35 -0700 (PDT)
Local: Sun, Jul 6 2008 8:16 pm
Subject: Re: LoadError (Expected /home/enterpr/mephisto/app/models/asset. rb to define Asset):
I found the problem.
Somewhere I saw a post to change this:
in mephisto/config/initializers/custom.rb
ASSET_IMAGE_PROCESSOR = :none
The trick was to kill the fcgi running for me on my HostingRails
account.
Lots of reading in several places. I hope to make a post that
recounts all of the things that me and the support guys at HR did to
get this running.
It's not really difficult, unless this is the 1st ever Rails app that
you put into a hosting account ( or any where for that matter ).
blog.enterpriseenergy.com
Now for a new theme.. something else to figure out.
On Jul 6, 7:31 pm, bartee <bar... @gmail.com> wrote:
> Here is what I got... I had tried earlier.. Maybe I am doing something
> wrong...
> [~/mephisto]$ ruby script/console production
> Loading production environment (Rails 2.0.2)>> Asset
> => 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)
> On Jul 6, 6:07 pm, "Rick Olson" <technowee... @gmail.com> wrote:
> > On 7/6/08, bartee <bar... @gmail.com> wrote:
> > > Mephisto 0.8 ( drax ) installed at HostingRails using rails 2.0.2
> > > some parts of mephisto work.
> > > Assest and Create Article will fail with the error below
> > > I have been told this may be missing gems at HostingRails, but I am
> > > new and not sure how to find this.
> > Load asset.rb in script/console to see what gems you are missing:
> > $ script/console production
> > >> Asset
> > --
> > Rick Olsonhttp://lighthouseapp.comhttp://weblog.techno-weenie.nethttp://mephist ...
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
"Rick Olson" <technowee... @gmail.com>
Date: Sun, 6 Jul 2008 19:19:27 -0700
Local: Sun, Jul 6 2008 10:19 pm
Subject: Re: [Mephisto] Re: LoadError (Expected /home/enterpr/mephisto/app/models/asset. rb to define Asset):
On 7/6/08, bartee <bar
... @gmail.com> wrote:
> I found the problem.
> Somewhere I saw a post to change this:
> in mephisto/config/initializers/custom.rb
> ASSET_IMAGE_PROCESSOR = :none
> The trick was to kill the fcgi running for me on my HostingRails > account.
> Lots of reading in several places. I hope to make a post that > recounts all of the things that me and the support guys at HR did to > get this running.
> It's not really difficult, unless this is the 1st ever Rails app that > you put into a hosting account ( or any where for that matter ).
> blog.enterpriseenergy.com
> Now for a new theme.. something else to figure out.
That's not really a solution. It may be defaulting to ImageScience,
which has issues in deployments if the ENV['HOME'] value isn't set.
If I could, I'd go back in time and stop the young, naive rick from
ever introducing ImageScience to attachment_fu.
-- Rick Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.com
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
"Yaroslav Markin" <yaroslav.mar... @gmail.com>
Date: Mon, 7 Jul 2008 10:30:29 +0400
Local: Mon, Jul 7 2008 2:30 am
Subject: Re: [Mephisto] Re: LoadError (Expected /home/enterpr/mephisto/app/models/asset. rb to define Asset):
On Mon, Jul 7, 2008 at 6:19 AM, Rick Olson <technowee
... @gmail.com> wrote:
> That's not really a solution. It may be defaulting to ImageScience, > which has issues in deployments if the ENV['HOME'] value isn't set. > If I could, I'd go back in time and stop the young, naive rick from > ever introducing ImageScience to attachment_fu.
Well you can set ENV['INLINEDIR'] in environment.rb, but using ImageScience
is not a great idea anyway.
-- Yaroslav Markin
You must
Sign in before you can post messages.
You do not have the permission required to post.