camelcasing

English Sentence to Camel-cased method name

I had to convert a series of sentences into camel-cased method names. I ended writing something for it. I am still curious if there's something simpler for it. Given the string a = "This is a test." output thisIsATest I used for following: a.downcase.gsub(/\s\w/){|b| b[-1,1].upcase } ...

Zend Framework isn't looking for camel cased actions when using the router

Hi guys im having a spot of bother, hope someone can shed some light on this. For some strange reason my route comes up saying action does not exist unless i change the camel casing to all lower case for that actions name then it works fine. but then that goes against the naming conventions! and i dont want to make my code sloppy either...