[Radiant] How to add additional routes without touching radiant routes.rb
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 ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Upgrading radiant .5 to .6
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 poisining. Did you recently also upgrade rubygems? Here are some instructions from the Gentoo bugs database: Going from rubygems-0.9.0-r2 to 0.9.1, the gem command gives me the following error: raven ~ # gem install hpricot ERROR: While executing gem ... (NoMethodError) undefined method `refresh' for #Hash:0xb7c4e9bc So far the only solution I've seen has been to manually delete /usr/lib/ruby/gems/1.8/source_cache, and the one in ~/.gems/ if it exists. I didn't, as root, have a ~/.gems . ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Style Sheet Unavailable on Radiant Mental
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 John W. Long: Ben Minton wrote: this is straight out of the source from a Firefox page: link rel=stylesheet type=text/css href=/styles.css / this is straight out of the source from an IE page: link rel=stylesheet type=text/css href=/styles.css / You should have a layout just for pages that are stylesheets. To create a Stylesheet layout: 1. Switch to the layouts tab 2. Create a new layout and call it Stylesheet 3. Set the body of the layout to: r:content / 4. Click the More link underneath the title of the stylesheet layout and set Content-Type to text/css. 5. Save the layout 6. Switch back over to your styles.css page 7. Set it's layout to Stylesheet -- John Long http://wiseheartdesign.com ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Radiant unpack error
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 --database mysql radiant60 -bash: radiant: command not found Where am I going wrong?? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 06 May 2007 13:01 To: radiant@lists.radiantcms.org Subject: Radiant Digest, Vol 14, Issue 8 Send Radiant mailing list submissions to radiant@lists.radiantcms.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.radiantcms.org/mailman/listinfo/radiant or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of Radiant digest... Today's Topics: 1. Re: Error when testing extensions (Sean Cribbs) 2. Re: Problem installing radiant 0.6.0 (Sean Cribbs) 3. Re: Error when testing extensions (Leon Yeh) 4. Re: Error when testing extensions ( Mislav Marohni? ) 5. [ANN] Radiant CMS 0.6.1 - Stone Cutter (Security Update) (John W. Long) 6. How to add additional routes without touching radiant routes.rb (Leon Yeh) 7. Re: Upgrading radiant .5 to .6 (Hans de Graaff) 8. Re: Error when testing extensions (Erik van Oosten) 9. Re: Style Sheet Unavailable on Radiant Mental (Gustaf Lindqvist) -- Message: 1 Date: Sat, 5 May 2007 17:02:50 -0500 From: Sean Cribbs [EMAIL PROTECTED] Subject: Re: [Radiant] Error when testing extensions To: radiant@lists.radiantcms.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Are these new extensions or ones that you started before the official release? Sean On 5/5/07, Andrew O'Brien [EMAIL PROTECTED] wrote: Hi everyone, I'm trying to develop some extensions and whenever I try to run a test I get: uninitialized constant ActionController::Assertions::ResponseAssertions (NameError) I'm running radiant 0.6 (frozen from the gem). This happens for everything: unit tests, functional tests, tests run through rake, tests run directly -- you name it. Any ideas? Thanks, Andrew ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant -- Message: 2 Date: Sat, 5 May 2007 17:23:07 -0500 From: Sean Cribbs [EMAIL PROTECTED] Subject: Re: [Radiant] Problem installing radiant 0.6.0 To: [EMAIL PROTECTED], radiant@lists.radiantcms.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Also, make sure RubyGems is up-to-date, if you have the permissions. [sudo] gem update --system Sean On 5/5/07, keith [EMAIL PROTECTED] wrote: I've tried this 3 or 4 times - but no joy! Any ideas anyone as I really need to get this installed. Keith -Original Message- From: John W. Long [mailto:[EMAIL PROTECTED] Sent: 05 May 2007 15:53 To: [EMAIL PROTECTED]; radiant@lists.radiantcms.org Subject: Re: [Radiant] Radiant Digest, Vol 14, Issue 6 keith wrote: All, I am really struggling to install radiant 0.6.0 - I am following the wiki instructions and get to ~/gems/bin/radiant --database mysql radapp and get the following error... -bash-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 /usr/lib/site_ruby/1.8/rubygems.rb:238:in `activate' from /usr/lib/site_ruby/1.8/rubygems.rb:76:in `active_gem_with_options' from /usr/lib/site_ruby/1.8/rubygems.rb:50:in `gem' from /home/buyscoot/gems/bin/radiant:15 Any ideas? Strange. It doesn't look like you have the gem installed correctly. Have you tried uninstalling it and reinstalling? -- John Long http://wiseheartdesign.com ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant -- Message: 3 Date: Sat, 05 May 2007 15:49:57 -0700 From: Leon Yeh [EMAIL PROTECTED] Subject: Re: [Radiant] Error when testing extensions To: radiant@lists.radiantcms.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi Sean and Andrew, I have the same problem. I have created an extension on mental and pre 0.6 release. I try to
[Radiant] Site5 install error
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 /usr/lib/site_ruby/1.8/rubygems.rb:238:in `activate' from /usr/lib/site_ruby/1.8/rubygems.rb:76:in `active_gem_with_options' from /usr/lib/site_ruby/1.8/rubygems.rb:50:in `gem' from /home/buyscoot/gems/bin/radiant:15 Driving me crazy - can any 1 help? ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] How to add additional routes without touching radiant routes.rb
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. 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 ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Error when testing extensions
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 the extension was created before 0.6 was released you may be forced to run the tests in application mode. -- John Long http://wiseheartdesign.com ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Error when testing extensions
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 vendor directory? -Andrew On 5/6/07, John W. Long [EMAIL PROTECTED] wrote: 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 the extension was created before 0.6 was released you may be forced to run the tests in application mode. -- John Long http://wiseheartdesign.com ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Site5 install error
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 radiant ( 0) (Gem::LoadError) I find this wiki entry helpful: http://dev.radiantcms.org/radiant/wiki/HowToSite5 You can ignore setting the ENV['HOME'] environment variable, though. It works without it. ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Error when testing extensions
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? By application mode do you mean that radiant is unpacked in the vendor directory? Application mode is when you are running Radiant like a normal Rails app (you checked it out via SVN or extracted the Zip or Tar), instance mode is what you get by default when you create a Radiant project with the radiant command. -- John Long http://wiseheartdesign.com ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Error when testing extensions
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 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 the extension was created before 0.6 was released you may be forced to run the tests in application mode. -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] How to add additional routes without touching radiant routes.rb
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 it from either vendor/radiant/config/routes.rb or from gem folder, depends on RADIANT_ROOT. Is there any way to do this on config/routes.rb ? since it is only applied to only this radiant app and not to the extension ? I guess I can just write an extension that can redirect to specific pages, but it would be overkill for my app. Thanks! Leon Yeh Sean Cribbs wrote: 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. 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 ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant