NoMethodError in SiteController#show_page

Anybody got this error while setting up?

NoMethodError in SiteController#show_page

undefined method `find’ for Status:Class

RAILS_ROOT:
/home/hyperxmedia/domains/radiant.hyperxmedia.biz/radiant/config/…
Application Trace http://radiant.hyperxmedia.biz/# | Framework
Tracehttp://radiant.hyperxmedia.biz/#| Full
Trace http://radiant.hyperxmedia.biz/#

/usr/local/lib/ruby/gems/1.8/gems/radiant-0.5.0/app/models/page.rb:49:in
status' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.5.0/app/models/page.rb:57:inpublished?’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.5.0/app/models/behavior.rb:92:in
find_page_by_url' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.5.0/lib/advanced_delegation.rb:10:infind_by_url’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.5.0/app/models/page.rb:72:in
find_by_url' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.5.0/app/controllers/site_controller.rb:29:infind_page’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.5.0/app/controllers/site_controller.rb:34:in
show_uncached_page' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.5.0/app/controllers/site_controller.rb:22:inshow_page’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in
perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:inperform_action_without_benchmark’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in
perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:inmeasure’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in
perform_action_without_rescue' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:inperform_action’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in
process_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:inprocess_without_session_management_support’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in
process' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:indispatch’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/rails.rb:73:in
process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:551:inprocess_client’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:550:in
process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:636:inrun’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:636:in
run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:625:inrun’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:956:in
run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:955:inrun’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/mongrel_rails:127:in
run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/command.rb:199:inrun’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/mongrel_rails:235
/usr/bin/mongrel_rails:18

For the life of me I can’t figure it out why is doing this.

Adrian M. wrote:

Trace http://radiant.hyperxmedia.biz/#

Ok, that’s weird. Did you install from source or Gem? Either way it
looks like your install is hosed. Wherever the core source is installed
(if it’s a gem in your local gem repository, if it’s not in the app’s
root) look for the file app/models/status.rb.


John L.
http://wiseheartdesign.com

John,

Thank you for answering. I also thought about the install so I removed
the
directory, run radiant (from gem 0.5.0) and db setup again twice and
still
was getting that error. So I checked out from svn and still was getting
the
same error. Then I hard coded RAILS_ROOT and RADIANT_ROOT to the same
svn
dir and it worked! No idea what was happening there.

AEM

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs