You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say I have EN, FR, and DE setup as my locales. I can create all 3 translations just fine. However, if I go to edit the French version, upon Save I get
ActiveRecord::RecordNotFound (Couldn't find Refinery::News::Item with id=[slug])
I've tried changing order of locales as well as adding/removing French and other locales and it always has to do with French only. Even if French version contains no French-specific characters.
Why is ActiveRecord looking up the French News Items as id=[slug]?
The text was updated successfully, but these errors were encountered:
I added a hack in my main Rails app to fix this. In /app/decorators/controllers/refinery/news/admin/items_controller_decorator.rb:
Refinery::News::Admin::ItemsController.class_evaldo# Fix for "Couldn't find Refinery::News::Item with id=[slug]"# when editing certain translated news items (usually French)deffind_itembegin@item=Refinery::News::Item.find(params[:id])rescue@item=Refinery::News::Item.find(Refinery::News::Item::Translation.find_by_slug(params[:id]).refinery_news_item_id)endendend
Let's say I have EN, FR, and DE setup as my locales. I can create all 3 translations just fine. However, if I go to edit the French version, upon Save I get
I've tried changing order of locales as well as adding/removing French and other locales and it always has to do with French only. Even if French version contains no French-specific characters.
Why is ActiveRecord looking up the French News Items as id=[slug]?
The text was updated successfully, but these errors were encountered: