My first question is on hosting. We have a dedicated server running a few PHP aps. I am this close to building the next app in Ruby, and converting everything else over. My questions is, how hard is it going to be to host a PHP and Rails app side by side? Will it slow down the Rails app due to constraints from the PHP apps?
My second question is this, I found a nl2br equivelent online, and am trying to use it. I put the function into my helper file, but it doesn't seem to do anything when I call it. I have it in the application helper file, thinking this would allow me to call it from anywhere in the app. It's a very simple function, shown here:
Code:def nl2br(s) s.gsub(/n/, '<br>') end
Here is where I call it on my page.
nl2br(@blog.body)
I get no errors, but it doesn't seem to do anything either. Can anyone help?







Bookmarks