Ruby on Rails Tuesday, February 25, 2014

Hi,

I've controller methods which my mobile app calls to retrieve JSON.

I'm curious what is the best practice in naming mobile methods? Do I put all the mobile calls into a new controller? Right now I'm only prependng 'mobile_' in front of the methods like session/mobile_create.

Right now the mobile functions are quite different from the Web ones. So a sessions/create VS sessions/mobile_create is different and so mobile_create news to exist.




--
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/b503e356-56d9-44aa-a968-e8111caaaa3d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment