I am trying to add i18n to Refinery CMS with added Inquiries gem. Everything is fine until I add links for switching locales , like this :
= link_to_unless_current image_tag('flag_bulgaria.png'), locale: "bg"
Then routing error appears :
No route matches {:locale=>"bg", :controller=>"refinery/inquiries/inquiries", :action=>"new"}
I have added the refinery-I18n gem ,also have added locales in the initializer file . I have tried to add before filter for setting the locale in the application_controller , but no results . I have read all the discussions about refinery i18n and found nothing about the problem . I'm using rails 3.2.6 , refinery cms 2.0.4 , refinerycms-inquiries 2.0.3 .
Thank you for helping me .