romanbsd/translate — pull request #4 by JayTeeSF (2012-06-20 03:05:41+00:00)
Title: Corrected broken translate route

Hi,

Thanks for updating this great gem, so that it works w/ Rails 3.

FWIW, I just tried it w/ my rails 3.0 app (ruby 1.9.2) and the translate#translate route didn't work.

Unfortunately the use of /translate for both translate/index and translate/translate was conflated ...and confusing. Despite attempting to tie them to different HTTP verbs (post & get) the translate#translate action never got called.

(I know because I after clicking the "Save Translation" button, walked the request in the debugger.)

I hope you'll accept this update and push a new gem.

Cheers,
Jonathan