You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 28, 2019. It is now read-only.
I've got a real basic Question and Answer project I'm trying to do. I can add answers to my question but as soon as I try to Create Question I get this error:
ActiveRecord::UnknownAttributeError in QuestionsController#create
unknown attribute: question_id
I've got a real basic Question and Answer project I'm trying to do. I can add answers to my question but as soon as I try to Create Question I get this error:
ActiveRecord::UnknownAttributeError in QuestionsController#create
unknown attribute: question_id
app/controllers/questions_controller.rb:44:in
new' app/controllers/questions_controller.rb:44:in
create'The "problem" sections of my controller:
def new
@question = Question.new
end
def create
@question = Question.new(params[:question])
end
The text was updated successfully, but these errors were encountered: