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
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
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
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
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
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(/;
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
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
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