[Radiant] How to add additional routes without touching radiant routes.rb

2007-05-06 Thread Leon Yeh
Hello, I tried to add a new routes into routes.rb. After reading the file, I found it to load routes.rb from radiant root. Is there any easy way to append or combine my routes to the radiant routes. Something similar to the extension routes handler. Thanks in advance, Leon Yeh

Re: [Radiant] Upgrading radiant .5 to .6

2007-05-06 Thread Hans de Graaff
On Sat, 05 May 2007 15:41:03 +0100, keith wrote: I get to step 2 and receive the following errors? -bash-3.00$ gem update radiant Updating installed gems... ERROR: While executing gem ... (NoMethodError) undefined method `refresh' for #Hash:0xb7d16b7c This looks like rubygems cache

Re: [Radiant] Style Sheet Unavailable on Radiant Mental

2007-05-06 Thread Gustaf Lindqvist
Hm, I wish the structure for the stylesheets would change in Radiant. Wouldn't it be better in the stylesheets and rss feeds code where placed under Layouts. Insted of using r:content / under Layouts to link to the Page etc. -- Gustaf Lindqvist http://lindq.se 5 maj 2007 kl. 15.47 skrev

[Radiant] Radiant unpack error

2007-05-06 Thread keith
Can anyone help installing Radiant - I have tried gems and subversion on site5 with no luck. I am following the installation guide to the letter -http://dev.radiantcms.org/radiant/wiki/Installation - but only get three steps in before hitting a problem when unpacking radiant... -bash-3.00$

[Radiant] Site5 install error

2007-05-06 Thread keith
Now trying install with gems and get the following error when trying to unpack the application: -jailshell-3.00$ ~/gems/bin/radiant --database mysql radapp /usr/lib/site_ruby/1.8/rubygems.rb:301:in `report_activate_error': Could not find RubyGem radiant ( 0) (Gem::LoadError) from

Re: [Radiant] How to add additional routes without touching radiant routes.rb

2007-05-06 Thread Sean Cribbs
If you're creating an extension, it's easy to do in the 'define_routes' block of the generated extensions class. All of the routes from extensions are loaded before the Radiant core routes. Sean On 5/6/07, Leon Yeh [EMAIL PROTECTED] wrote: Hello, I tried to add a new routes into routes.rb.

Re: [Radiant] Error when testing extensions

2007-05-06 Thread John W. Long
Erik van Oosten wrote: Indeed, I am not sure its a bug or a feature, but extensions can only be tested in application mode. Um, no. That was true for most of the mental branch's life, but it is not true for the 0.6 series. You can run tests for extensions in instance or application mode. If

Re: [Radiant] Error when testing extensions

2007-05-06 Thread Andrew O'Brien
I did have 0.6RC2 installed, but have upgraded the the stable version. The extensions (and the radiant instance) were all created after the upgrade. This may be an obvious question but what's instance mode and application mode? By application mode do you mean that radiant is unpacked in the

Re: [Radiant] Site5 install error

2007-05-06 Thread nn
On 5/6/07, keith [EMAIL PROTECTED] wrote: Now trying install with gems and get the following error when trying to unpack the application: -jailshell-3.00$ ~/gems/bin/radiant --database mysql radapp /usr/lib/site_ruby/1.8/rubygems.rb:301:in `report_activate_error': Could not find RubyGem

Re: [Radiant] Error when testing extensions

2007-05-06 Thread John W. Long
Andrew O'Brien wrote: I did have 0.6RC2 installed, but have upgraded the the stable version. The extensions (and the radiant instance) were all created after the upgrade. Tests run for extensions on 0.6 not RC2. This may be an obvious question but what's instance mode and application mode?

Re: [Radiant] Error when testing extensions

2007-05-06 Thread Erik van Oosten
Ah, that's good news. I'd better upgrade to the 0.6 release then (I am still on RC2). I guess I can recreate my extension, and then copy in all the code. Regards, Erik. John W. Long wrote: Erik van Oosten wrote: Indeed, I am not sure its a bug or a feature, but extensions can only be

Re: [Radiant] How to add additional routes without touching radiant routes.rb

2007-05-06 Thread Leon Yeh
Hi Sean, The new routes is not specific to an extension, it is more specific to the instance of my radiant app. For example: I need to route: /specialoffer url to /offers/free_bike page. In regular rails app, you can just add this into config/routes.rb. However for radiant, it basically load