Hi,
My apologies if my question looks like stupid but I'm newbie on Cequel and NoSQL database logic.
I would like a concrete example on how to migrate my active record logic into NoSQL
I've choosen cassandra and then cequel for my project.
The active record definition is as follows:
I have a blog that has following models:
post model is defined with :
- belongs_to :author
- has_many :comments
author model :
What I want is to do the same with Cassandra / Cequel
I understood the logic in the model definiton with the cequel documentation on github,
but can't figure out how to handle associations inside views and controllers to manage relations between post and author for example.
How should I define authors collection in the post _form.html.erb file ?
Also in posts/index.html.erb file how can I display and get associated author names...?
is it exactly the same than with active records?
Kind Regadrs