On Tuesday, February 25, 2014 6:43:52 AM UTC-5, Brandon wrote:
>
> 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.
>
>
>
>
>
I'm not sure I understand exactly what you're doing, but I'm assuming when 
you refer to a mobile app you mean a rails app running on a mobile device 
(as opposed to an app developed in Cocoa or Android that is accessing your 
API).  In that case, I would recommend Rails 4.1 as they have developed a 
standard that is a lot easier to use.  Look at the section "ActionPack 
Variants" at the following link:

http://coherence.io/blog/2013/12/17/whats-new-in-rails-4-1.html 

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/9d6745aa-e194-42cb-9572-ce42eeb33373%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to