Showing 7 of 7 total issues
Inconsistent indentation detected. Open
def room_params params.require(:room).permit(:name, :rank) 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_room, only: [:show, :edit, :update, :destroy]
- 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
Add an empty line after magic comments. Open
class RoomsController < ApplicationController
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Inconsistent indentation detected. Open
def set_room @room = Room.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