Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wrong number of arguments (given 2, expected 0..1)
- module Api
- module V1
- class SitesController < ApplicationController
- def show
- @site = Site.find(params[:id])
- render json: @site, serializer: SiteSerializer
- end
- end
- end
- end
- class SiteSerializer < ActiveModelSerializers::Model
- attributes :id, :name
- end
Add Comment
Please, Sign In to add comment