Ruby on Rails Thursday, December 25, 2014

Hi all,

I might need your advise on this.

I've been working on an web app and I'm wondering how to turn it into a api based application.

What's the best practice?

imagin I have a articles resource

do I create a articles controller with empty actions, then an api::articles_controller which will take care of the data computations, and then from my views call the api to get the data in json format so I can use angular for example on the frontend?

How would you implemente it?

Thanks for your contribution

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/322df10f-2f2c-4b5f-bd69-f4177af169cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment