mateus / Contentify

Transform the articles you find into elegant reading experiences.
https://contentify.io
0 stars 0 forks source link

Add articles to user #98

Closed goldenson closed 7 years ago

goldenson commented 7 years ago

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

article = Article.first
article.content['url']
article.content['domain']

Load fixtures

bundle exec rake db:fixtures:load FIXTURES=users,articles

goldenson commented 7 years ago

part of https://github.com/mateus/Contentify/issues/13