PDA

View Full Version : How can I make custom inflections work in Ruby on Rails?



sker
10-18-2008, 07:28 PM
I finally got my rails app to run. Now it doesn't recognize my custom inflections, I know I'm supposed to restart my server but as far as I know there's no way to do that in bluehost.

If I log into the rails console my custom inflections work fine:


Loading development environment (Rails 2.1.0)
>> 'test'.pluralize
=> "tests"
>> 'publicacion'.pluralize
=> "publicaciones"

Here 'publicacion' is a custom inflection, but my current running app doesn't recognize/implement it:


Mysql::Error: Table 'bodasliv_arbsa.publicacions' doesn't exist

What do you do when you modify your inflections file?

sker
10-18-2008, 07:58 PM
Live Chat told me how to restart the server, just type:


pkill -9 -u `whoami` -f dispatch.fcgi

And that solved the problem, thanks live chat.