RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: etehtsea
Seems that instead of using
format.json { render :json => @authors.map(&:attributes) }
we can set
self.include_root_in_json = false
in the needed model.
Seems that instead of using
we can set
in the needed model.