# NoMethodError in SiteController#show\_page

**URL:** <https://www.ruby-forum.com/t/nomethoderror-in-sitecontroller-show-page/98344>\
**Category:** Radiant CMS\
**Created:** [July 14, 2006, 12:25am UTC](https://www.ruby-forum.com/t/nomethoderror-in-sitecontroller-show-page/98344 "2006-07-14T00:25:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cvcomp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/91b2a8/32.png) [@cvcomp](https://www.ruby-forum.com/u/cvcomp)\
**Post date:** [July 14, 2006, 12:25am UTC](https://www.ruby-forum.com/t/nomethoderror-in-sitecontroller-show-page/98344/1 "2006-07-14T00:25:13Z")

</div>

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/#](http://radiant.hyperxmedia.biz/#) | Framework  
Trace[http://radiant.hyperxmedia.biz/#](http://radiant.hyperxmedia.biz/#)| Full  
Trace [http://radiant.hyperxmedia.biz/#](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:in `published?’  
/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:in `find\_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:in `find\_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:in `show\_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:in `perform\_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:in `measure’  
/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:in `perform\_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:in `process\_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:in `dispatch’  
/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:in `process\_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:in `run’  
/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:in `run’  
/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:in `run’  
/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:in `run’  
/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.

---

<div class="post-metadata">

**Author:** ![cvcomp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/91b2a8/32.png) [@cvcomp](https://www.ruby-forum.com/u/cvcomp)\
**Post date:** [July 14, 2006, 3:41am UTC](https://www.ruby-forum.com/t/nomethoderror-in-sitecontroller-show-page/98344/2 "2006-07-14T03:41:48Z")

</div>

Adrian M. wrote:

> Trace [http://radiant.hyperxmedia.biz/#](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](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![cvcomp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/91b2a8/32.png) [@cvcomp](https://www.ruby-forum.com/u/cvcomp)\
**Post date:** [July 14, 2006, 9:49am UTC](https://www.ruby-forum.com/t/nomethoderror-in-sitecontroller-show-page/98344/3 "2006-07-14T09:49:55Z")

</div>

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
