Say I have the following: class ProjectsController < ApplicationController responds_to :html def show
I\'m looking for a way to shorten up the :include => :child inside a respond_with which generates json.
Having trouble with generating some json. I am trying to render an single active record result to json like this:
I\'m having the following problem with a simple Rails 3 app I\'m creating.It is driving me batty. My model:
I\'m trying to DRY up a controller by incorporating respond_with. When I do, following some instructions in a Railscast, I get things mostly working. The problem lies in the redirect after deleting a
Preamble: I investigated how to version an API and found several ways to do it.I decided to try peter williams\' suggestion and created new vendor mime types to specify version and format.I could fi
I\'ve recently upgraded from Ruby 1.8.6 and Rails 2.3.4 to Ruby 1.9 and Rails 3.0.3. I have the following controller:
using ruby 1.9.2 and rails 3, i would like to limit the fields returned when a record is accessed as json or xml (the only two formats allowed).
I have an application, on which I have two user interfaces. The first one is for normal users and the second one is for iphone users.
I\'m trying to create a JSONP API for my Rails 3 application. Right now in my controllers, I have a lot of actions which follow this pattern: