BenMusch/nu-tab

View on GitHub
app/controllers/rooms_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage

Showing 7 of 7 total issues

Inconsistent indentation detected.
Open

def room_params
params.require(:room).permit(:name, :rank)
end
Severity: Minor
Found in app/controllers/rooms_controller.rb by rubocop

Put empty method definitions on a single line.
Open

def show
end
Severity: Minor
Found in app/controllers/rooms_controller.rb by rubocop

Use %i or %I for an array of symbols.
Open

before_action :set_room, only: [:show, :edit, :update, :destroy]
Severity: Minor
Found in app/controllers/rooms_controller.rb by rubocop

Put empty method definitions on a single line.
Open

def edit
end
Severity: Minor
Found in app/controllers/rooms_controller.rb by rubocop

Add an empty line after magic comments.
Open

class RoomsController < ApplicationController
Severity: Minor
Found in app/controllers/rooms_controller.rb by rubocop

Inconsistent indentation detected.
Open

def set_room
@room = Room.find(params[:id])
end
Severity: Minor
Found in app/controllers/rooms_controller.rb by rubocop

Keep a blank line before and after private.
Open

private
Severity: Minor
Found in app/controllers/rooms_controller.rb by rubocop

There are no issues that match your filters.

Category
Status