Constant charging

Asked

Viewed 30 times

0

I’m having trouble with the model report.

Console:

LoadError (Unable to autoload constant Report_questao, expected app/models/report.rb to define it):
  app/controllers/pessoas_controller.rb:49:in `reportar'

controller:

require 'report'

class QuestoesController < ApplicationController
def reportar
    @report = report.new
  end
end

Model:

report.Rb

class Report < ActiveRecord::Base

  belongs_to :pessoa

end

1 answer

0

The stupid mistake was in:

questao.new 

instead of

Questao.new

Thank you Marco Vinicius

Browser other questions tagged

You are not signed in. Login or sign up in order to post.