mercredi 26 septembre 2018

How do I filter records by locale using gem mobility?

I have a table mobility_string_translations, but I do not understand how to get to it.

Now I have three records. Two records in German and one in Spanish. I want to get only those records that are in German.

this not working:

all_de_posts = Post.i18n.find_by(locale: :de)

Aucun commentaire:

Enregistrer un commentaire