Yes, same controllers. That's the case this was invented for. On Wednesday, February 25, 2015 at 12:14:04 PM UTC-8, Wojciech Wnętrzak wrote: > > Are you using the same controller for HTML and JSON responses? > Since we have strong params, model attributes can be nicely grouped with > or without root key. > I didn't try it, but HTML attributes could be passed flat as well to be > consistent with JSON format. > In that case, you wouldn't need such tricks with params wrapping. > >
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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]. Visit this group at http://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.
