# Modifying look-feel, and an error I'm seeing

**URL:** <https://www.ruby-forum.com/t/modifying-look-feel-and-an-error-im-seeing/154402>\
**Category:** Radiant CMS\
**Created:** [November 28, 2008, 7:47pm UTC](https://www.ruby-forum.com/t/modifying-look-feel-and-an-error-im-seeing/154402 "2008-11-28T19:47:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrrobert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@mrrobert](https://www.ruby-forum.com/u/mrrobert)\
**Post date:** [November 28, 2008, 7:47pm UTC](https://www.ruby-forum.com/t/modifying-look-feel-and-an-error-im-seeing/154402/1 "2008-11-28T19:47:56Z")

</div>

What’s the trick to modifying existing pages (For example, in the admin  
pages, I want it to say something other than “Radiant CMS”)? Do I have  
to  
modify them in the gem or can my extensions override? An example of how  
to  
do that would be great!

Also without any customizations to the basic project created in the  
usual  
way whatsoever the admin site works OK but when I go to just about any  
page  
except the about page I’m getting the following error:

NoMethodError in SiteController#show\_page

undefined method `[]’ for #Enumerable::Enumerator:0x236b648

/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.9/vendor/rails/activesupport/lib/active\_support/core\_ext/string/access.rb:43:in  
`first’

/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.9/app/models/standard\_tags.rb:884:in  
`absolute_path_for' /opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.9/app/models/standard_tags.rb:584:in`tag:find’  
/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.9/lib/radiant/taggable.rb:16:in  
`send’

/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.9/lib/radiant/taggable.rb:16:in  
`render_tag' /opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.9/app/models/page_context.rb:10:in`initialize’  
/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.9/vendor/radius/lib/radius.rb:275:in  
`call’

/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.9/vendor/radius/lib/radius.rb:275:in  
`render_tag' /opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.9/vendor/radius/lib/radius.rb:306:in`stack’  
/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.9/vendor/radius/lib/radius.rb:274:in  
`render\_tag’

/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.9/app/models/page\_context.rb:18:in  
`render_tag' /opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.9/vendor/radius/lib/radius.rb:437:in`parse\_end\_tag’  
/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.9/vendor/radius/lib/radius.rb:363:in  
`call’

/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.9/vendor/radius/lib/radius.rb:363:in  
`to_s' /opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.9/vendor/rails/activesupport/lib/active_support/core_ext/array/conversions.rb:57:in`to\_default\_s’

/opt/local/lib/ruby/gems/1.8/gems/radiant-0.6.9/vendor/rails/activesupport/lib/active\_support/core\_ext/array/conversions.rb:57:in  
`to\_s’

…

Sincerely,

Bob

---

<div class="post-metadata">

**Author:** ![mrrobert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@mrrobert](https://www.ruby-forum.com/u/mrrobert)\
**Post date:** [November 28, 2008, 7:53pm UTC](https://www.ruby-forum.com/t/modifying-look-feel-and-an-error-im-seeing/154402/2 "2008-11-28T19:53:49Z")

</div>

Change the admin.subtitle and admin.title properties and you’ll be  
good. You can do it through the console (which I don’t like) or  
install the Settings extension and edit it directly in the UI (which I  
do like).

---

<div class="post-metadata">

**Author:** ![mrrobert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@mrrobert](https://www.ruby-forum.com/u/mrrobert)\
**Post date:** [November 28, 2008, 8:11pm UTC](https://www.ruby-forum.com/t/modifying-look-feel-and-an-error-im-seeing/154402/3 "2008-11-28T20:11:24Z")

</div>

Bob,

The undefined method `[]’ for # error comes from an  
incompatibility between Ruby 1.8.7 and Rails 2.0.2. Just add

unless ‘1.9’.respond\_to?(:force\_encoding)  
String.class\_eval do  
begin  
remove\_method :chars  
rescue NameError  
# OK  
end  
end  
end

to your environment.rb and you’ll be fine. Someone on the list also  
solved it by installing ruby enterprise edition, which is Ruby 1.8.6  
compatible.

Michael

---

<div class="post-metadata">

**Author:** ![mrrobert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@mrrobert](https://www.ruby-forum.com/u/mrrobert)\
**Post date:** [November 28, 2008, 8:23pm UTC](https://www.ruby-forum.com/t/modifying-look-feel-and-an-error-im-seeing/154402/4 "2008-11-28T20:23:42Z")

</div>

Adam van den Hoven wrote:

> Change the admin.subtitle and admin.title properties and you’ll be  
> good. You can do it through the console (which I don’t like) or  
> install the Settings extension and edit it directly in the UI (which I  
> do like).

The settings extension was documented by me for Summer Reboot:  
[http://wiki.radiantcms.org/Settings\_Extension](http://wiki.radiantcms.org/Settings_Extension)

Cheers,  
Mohit.  
11/29/2008 | 3:22 AM.

---

<div class="post-metadata">

**Author:** ![mrrobert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@mrrobert](https://www.ruby-forum.com/u/mrrobert)\
**Post date:** [November 28, 2008, 8:35pm UTC](https://www.ruby-forum.com/t/modifying-look-feel-and-an-error-im-seeing/154402/5 "2008-11-28T20:35:27Z")

</div>

By gum that did it. Thanks!

- Bob
