app/models/subject.rb
Subject has no descriptive comment
Missing top-level class documentation comment.class Subject < ApplicationRecordTab detected.
Use 2 (not 1) spaces for indentation. belongs_to :teacherTab detected. has_many :grades, dependent: :destroyTab detected. has_many :classroom_subjects, dependent: :destroyTab detected. has_many :alumns, through: :gradesTab detected. has_many :classrooms, through: :classroom_subjectsTab detected. belongs_to :classroom_gradeTab detected. validates_associated :gradesTab detected. validates_associated :alumns Inconsistent indentation detected. validates :name_subject,Align the parameters of a method call if they span more than one line.
Tab detected.
Prefer single-quoted strings when you don't need string interpolation or special symbols. presence: { message: "Não pode estar em branco!" },Tab detected. length: { minimum: 5,Align the elements of a hash literal if they span more than one line.
Tab detected. maximum: 20,Align the elements of a hash literal if they span more than one line.
Tab detected.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Use the new Ruby 1.9 hash syntax. :too_short => "deve possuir mais de 5 caracteres.",Tab detected.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Use the new Ruby 1.9 hash syntax.
Align the elements of a hash literal if they span more than one line.
Space inside } missing. :too_long => "deve possuir no máximo 20 caracteres."} Extra blank line detected. Inconsistent indentation detected. validates :teacher,Prefer single-quoted strings when you don't need string interpolation or special symbols. presence: { message: "não válido para criar matéria!" }, uniqueness: trueExtra empty line detected at class body end. end