Skip to content

Instantly share code, notes, and snippets.

@shiroginne
Created August 9, 2017 18:10
Show Gist options
  • Save shiroginne/4374087564ba4438b74b3a82df51ba97 to your computer and use it in GitHub Desktop.
Save shiroginne/4374087564ba4438b74b3a82df51ba97 to your computer and use it in GitHub Desktop.
Rails CRUD controllers
class PostsController < ApplicationController
def index
end
def show
end
def new
end
...
end
class RatingsController < ApplicationController
def create
end
def update
end
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment