I have Rails application, I want the CRUD functionality in my android mobile.
Rails provides default respond_to actions (html, json, xml..etc) in all controllers. I have been developing mobile application for android. I want to do CRUD operation in my mobile Rails application. Can we use this default respond_to for API calls?
If we do separate namespace for API, same method / code written in default all controllers, have to write again for API all controllers also.
I can't able to apply RAILS DRY concept here!.
What are the best ways to do API functionality in Rails without repeating controller code or model code?