[Rails-core] Using JSON template builders with respond_with

2012-02-13 Thread Matt Jones
Quick question: what's the best way to use a JSON template builder (jbuilder, etc) with respond_with? The current implementation loses some of the semantics in that situation; for instance, adding a template for the create action means that the response comes back as a 200 OK instead a 201

Re: [Rails-core] 5x speedup in inflections

2012-02-13 Thread Jeffrey L. Taylor
Quoting Xavier Noria f...@hashref.com: Hi gents, I am playing around with an idea to improve the performance of singularize and pluralize for Rails 4.0. In my proof of concept I see some 5x boost, but it relies an assumption that I'd like to consult with you all. Let me explain. As you