Closed goldenson closed 7 years ago
Article.where('content @> ?', {domain: 'www.lemonde.fr'}.to_json)
article = Article.first article.content['url'] article.content['domain']
bundle exec rake db:fixtures:load FIXTURES=users,articles
part of https://github.com/mateus/Contentify/issues/13
Article land
Article that belongs to the domain lemonde.fr
Article.where('content @> ?', {domain: 'www.lemonde.fr'}.to_json)
You can use the article like this
Load fixtures
bundle exec rake db:fixtures:load FIXTURES=users,articles