# Setup problem

**URL:** <https://www.ruby-forum.com/t/setup-problem/95537>\
**Category:** Radiant CMS\
**Created:** [June 5, 2006, 6:32pm UTC](https://www.ruby-forum.com/t/setup-problem/95537 "2006-06-05T18:32:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![timperrett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Post date:** [June 5, 2006, 6:32pm UTC](https://www.ruby-forum.com/t/setup-problem/95537/1 "2006-06-05T18:32:22Z")

</div>

Hi Guys

Just installed Radient, its pretty awsome, really loving your work.

However I have the following problem…

The admin section works without a hitch, but whenever I go to view the  
front  
end of the site I get the following error message…

NoMethodError in SiteController#show\_page  
undefined method `content\_type’ for #Layout:0xb7921fe8

#{RAILS\_ROOT}/vendor/rails/activerecord/lib/active\_record/base.rb:1792:in  
`method_missing' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/associations/assoc iation_proxy.rb:110:in `method\_missing’  
#{RAILS\_ROOT}/app/models/behavior.rb:49:in `process' #{RAILS_ROOT}/lib/advanced_delegation.rb:10:in `process’  
#{RAILS\_ROOT}/app/controllers/site\_controller.rb:23:in `show\_page’

Which seems odd, as the admin section works perfectly!

Anyone know why this might be happening?

Thanks

Tim P.

* * *

This e-mail has been scanned for all viruses by Star. The  
service is powered by MessageLabs. For more information on a proactive  
anti-virus service working around the clock, around the globe, visit:  
[http://www.star.net.uk](http://www.star.net.uk)

---

<div class="post-metadata">

**Author:** ![timperrett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Post date:** [June 5, 2006, 8:08pm UTC](https://www.ruby-forum.com/t/setup-problem/95537/2 "2006-06-05T20:08:59Z")

</div>

This happened to me, but I had updated an older version and forgot to  
update the database. On a fresh install, I’m not sure what would cause  
this. There is a “content\_type” field in the Layouts table of the  
database, but it’s blank for all my layouts so I dunno.

---

<div class="post-metadata">

**Author:** ![timperrett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Post date:** [June 5, 2006, 10:59pm UTC](https://www.ruby-forum.com/t/setup-problem/95537/3 "2006-06-05T22:59:31Z")

</div>

On 6/5/06, Tim P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> NoMethodError in SiteController#show\_page  
> undefined method `content\_type’ for #Layout:0xb7921fe8

rake migrate should probably fix your problem. It is necessary  
whenever the schema change.
