Re: [Radiant] Upgrade problem 0.5.2 to 0.6.2

2007-06-29 Thread Jim Gay
On Jun 29, 2007, at 10:40 AM, Jim Gay wrote: > But I just got this message from someone trying to edit a page: > > > Help! When I go to save changes to any page in Radiant, I get this > error message: > > NoMethodError in Admin/pageController#edit > > undefined method `+' for nil:NilCl

[Radiant] Upgrade problem 0.5.2 to 0.6.2

2007-06-29 Thread Jim Gay
Previously, I had written to the list and John was helping me figure out problems with my upgrade. I'm happy to say that I got things working (I think it had to do with me forgetting to rake or run the proper environment) Unfortunately, in my upgrade to 0.6.2 I though everything was fine. B

Re: [Radiant] language_redirect

2007-06-29 Thread Keymone
thanks :) anyway problem is few lines upper: --- app/models/language_redirect_page.rb(revision 3) +++ app/models/language_redirect_page.rb(working copy) @@ -18,7 +18,9 @@ protected def config - Hash[*render_part(:config).split(/[\n:]/)] + rules = render_part(:con

Re: [Radiant] language_redirect

2007-06-29 Thread Giovanni Intini
That code is quite interesting actually. John did you write it? The first line (q= ...) defines a lambda, that is a proc, that is a method that can be assigned to a variable. It's equal to def q(str) if str.match(/;q=/) $'.to_f # $' returns the string that follows the matched part else

Re: [Radiant] Virtual Machine for Radiant

2007-06-29 Thread James Thompson
I'd go with 256MB. I wouldn't run Mongrel though, others may disagree. I use Lighttpd with static FastCGI for my sites and all our client sites we do with Radiant. Lighttpd will really reduce your virtual server overhead as compared to running Apache and by using FastCGI you reduce the compl

[Radiant] language_redirect

2007-06-29 Thread Keymone
Hello! did somebody noticed that language_redirect does not handle windows line endings? it redirects me to something like /uk/%0D instead of just /uk/ i tried to fix it myself but this: q = lambda { |str| /;q=/ =~ str ? Float($') : 1 } langs = langs.collect do |ele| [q.call(ele), ele.split(/;

Re: [Radiant] Virtual Machine for Radiant

2007-06-29 Thread Sean Cribbs
I also use Mongrel behind Apache, but I've heard good things about nginx too. I would say you can expect your Rails/Radiant processes to consume at least 20MB of memory, on average around 30-40, including RMagick or ImageScience. For reference, seancribbs.com is running behind Apache 2.2 on one M

Re: [Radiant] Virtual Machine for Radiant

2007-06-29 Thread Aitor Garay-Romero
Lighttpd is small, fast and easy to setup. This great guide shows you how to setup a rails stack in a VPS/dedicated server: http://brainspl.at/rails_stack.html The script described here may help too: http://bliki.rimuhosting.com/space/knowledgebase/linux/miscapplications/ruby+on+ra

Re: [Radiant] Virtual Machine for Radiant

2007-06-29 Thread Daniel Sheppard
My preferred way to go about it is to use mongrel behind apache and following instructions from http://mongrel.rubyforge.org/docs/apache.html But that's mainly because I feel very confortable with both mongrel and apache and I tend to be installing on fairly hefty machines. Fastcgi, a direct si