I couldn’t find any other source to solve my problem, so I’m posting
here I have a controller “candidates”
class CandidatesController < ApplicationController
@candidate = Candidate.new
A table model called candidate with lots of validations.
I create my new.html.erb and whenever I try to open it I get this
undefined method `define_attribute_methods’ for nil:NilClass
Extracted source (around line #3):
3: <% form_for @candidate do |t|%>
5: <%= t.label :name,“Isim”%>
6: <%= t.text_field :name%>
Please help me out!