16 May '12, 7am


module Api module V1 class ProductsController < ApplicationController class Product < ::Product # Note: this does not take into consideration the create/update actions for changing released_on def as_json(options = {}) super.merge(released_on: released_at.to_date) end end respond_to :json def index respond_with Product.all end def show respond_with Product.find(params[:id]) end def create respond_with Product.create(params[:product]) end def update respond_with Product.update(params[:id], params[:product]) end def destroy respond_with Product.destroy(params[:id]) end end end end

Full article: http://railscasts.com/episodes/350-rest-api-versioning


@LHD7_hogehoge Redmine Rest API の update がPUT

redmine.org 21 May '12, 3am

<?xml version="1.0" encoding="UTF-8"?> <issues type="array" count="1640"> <issue> <id>4326</id> <project name="Redmine" id...

Google AdSense API Referral Bounty

seroundtable.com 17 May '12, 12pm

A thread in the Google AdSense Help forums has a question on a new term being used by Google AdSense named the "API Referr...

ASCIIcast 350 - REST API Versioning

ASCIIcast 350 - REST API Versioning

railscasts.com 28 May '12, 9pm

We’ll add some routes specifically for the API so that these routes stay separate from the routes for the HTML interface. ...

Episode #272 - May 15th, 2012

ruby5.envylabs.com 15 May '12, 4pm

May 11th, 2012 Bootstrapping young JS framework released, poppin BubbleWrap, internationalizing with alchemy, mixins and r...

@howcanlikethat $350

soft.com.sg 16 May '12, 2pm

WTS: Tama Iron Cobra Double Pedals $319 (Not for picky buyers) By mund9393 in forum Drums - Buy/Sell Replies: 0 Last Post:...


edgeguides.rubyonrails.org 20 May '12, 2pm

, which are traditionally used for separating “languages” and “regional setting” or “dialects”. Many international applica...

Episode 348: The Rails API Gem

railscasts.com 09 May '12, 8am

It is often asked: Is Rails a good fit if I only need to serve an API? In this episode I show how to use the Rails API gem...