Skip to content

Instantly share code, notes, and snippets.

View borisrorsvort's full-sized avatar

Boris Rorsvort borisrorsvort

View GitHub Profile
@borisrorsvort
borisrorsvort / bulk_api_example.rb
Last active June 17, 2022 10:56 — forked from dhh/gist:981520
Ruby snippets
# Bulk API design
#
# resources :posts
class PostsController < ActiveController::Base
# GET /posts/1,4,50,90
# post_url([ @post, @post ])
def show_many
@posts = Post.find(params[:ids])
end