I'm building a simple blog app using Rails 4 (api) & Angularjs to help with learning Angularjs. I've already spent 2 days just getting my post model to communicate with Angularjs. It seems I've hit another wall trying to associate the posts with a user (using Devise).
I know that as I build on to this app, that I'll be using foreign keys & so I would love to hear from others who have built SPAs using rails & angularjs. I also tried to set Angularjs up to mimic Rails as close as possible.
How do you handle associations using Angularjs & Rails?
How do you even get Devise helpers, such as current_user & user_signed_in? to work in Angularjs templates?
Thank you in advance.
I can add more details if you need me to. I really just don't know where to go form here (I'm a newbie in both Rails & Angularjs)