Re: [Radiant] error after install

2008-12-12 Thread Robert Calco
Adding this to environment.rb before the Radiant::Initializer.run do line
makes it work on 1.8.7:

unless '1.9'.respond_to?(:force_encoding)
 String.class_eval do
   begin
 remove_method :chars
   rescue NameError
 # OK
   end
 end
end

I don't remember who gave me that from this list but whoever it was, thank
you again!

- Bob

On Fri, Dec 12, 2008 at 2:33 PM, jason white studio1...@gmail.com wrote:

 thank you for the quick reply. i will try and reinstall it later, and use
 Ruby 1.8.6

 Thanks,
 Jason

 On Fri, Dec 12, 2008 at 1:24 PM, Sean Cribbs seancri...@gmail.com wrote:

  Radiant is still incompatible with Ruby 1.8.7.  There might have been a
 fix
  posted on the mailing list, but I'm not certain.
 
  Sean
 
  jason white wrote:
 
  Hello All,
 i have just installed Radiant, and ran script/server. I can login to
  the
  admin section with no problems, but when i go to the site at
  localhost:3000
  i get the error listed below. i searched the previous posts, but have
 not
  found any resolution to the problem.
 
  NoMethodError in SiteController#show_page
 
  undefined method `[]' for #Enumerable::Enumerator:0xb724ce78
 
  RAILS_ROOT: /home/jason/development/radiant
 
 
 
  thank you,
  Jason
  ___
  Radiant mailing list
  Post:   Radiant@radiantcms.org
  Search: http://radiantcms.org/mailing-list/search/
  Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
 
 
 
 
  ___
  Radiant mailing list
  Post:   Radiant@radiantcms.org
  Search: http://radiantcms.org/mailing-list/search/
  Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
 
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Modifying look-feel, and an error I'm seeing

2008-11-28 Thread Robert Calco
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
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Modifying look-feel, and an error I'm seeing

2008-11-28 Thread Robert Calco
By gum that did it. Thanks!

- Bob

On Fri, Nov 28, 2008 at 2:10 PM, Michael Kessler [EMAIL PROTECTED]wrote:

 Bob,

 The undefined method `[]' for #Enumerable 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


 On 28 Nov 2008, at 7:47 PM, Robert Calco wrote:

  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
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant