需要有多种语言。
配置 i18n.rb:
Refinery::I18n.configure do |config|
config.enabled = true
config.default_locale = :en
config.current_locale = :en
config.default_frontend_locale = :en
config.frontend_locales = [:en, :ru]
config.locales = {:en=>"English", :ru=>"Russian"}
end
在炼油厂生成引擎:
rails generate refinery:engine product title:string description:text image:image --i18n title description
rails generate refinery:products
我收到以下错误:No route matches {:locale=>:en, :controller=>"refinery/products/products", :action=>"show", :id=>"1"}
当我尝试打开引擎的任何页面时
请帮忙!