Showing 7 of 7 total issues
Inconsistent indentation detected. Open
def set_judge @judge = Judge.find(params[:id]) end
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Keep a blank line before and after private
. Open
private
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Add an empty line after magic comments. Open
class JudgesController < ApplicationController
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Inconsistent indentation detected. Open
def judge_params params.require(:judge).permit(:name, :rank, school_ids: []) end
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Put empty method definitions on a single line. Open
def edit end
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Put empty method definitions on a single line. Open
def show end
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Use %i
or %I
for an array of symbols. Open
before_action :set_judge, only: [:show, :edit, :update, :destroy]
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks