Open pilap82 opened 11 years ago
Hi,
let's say I have a translated name column.
name
Post.where(name: 'youpi')
doesn't work.
Is there a way to look for any post whose name is 'youpi' in any of the locales (without having to duplicate the conditions for each locale)?
thanks, P.
Yes. you can use the avals(hstore) for that
see more at : http://www.postgresql.org/docs/9.0/static/hstore.html
Hi,
let's say I have a translated
name
column.doesn't work.
Is there a way to look for any post whose
name
is 'youpi' in any of the locales (without having to duplicate the conditions for each locale)?thanks, P.