I’m recieving the error “You have a nil object when you didn’t expect
it!
The error occured while evaluating nil.each_hash”, when trying to access
a value
from params. I’m trying to get the value with
@params[‘CourseSection’][‘section_name’] is nil. You should set this,
perhaps by having a form field in the previous view: <%= text_field
“CourseSection”, “section_name” %>
@params[‘CourseSection’][‘section_name’] is nil. You should set this,
perhaps by having a form field in the previous view: <%= text_field
“CourseSection”, “section_name” %>
I don’t understand why @params[‘CourseSection’][‘section_number’] would
be nil.
CourseSection is a hash in a hash, so by asking for @params[‘CourseSection’][‘section_name’] should I not recieve the value
for section_number, being “153” in this case.
I don’t understand why @params[‘CourseSection’][‘section_number’]
would
be nil.
CourseSection is a hash in a hash, so by asking for @params[‘CourseSection’][‘section_name’] should I not recieve the
value
for section_number, being “153” in this case.
Okay, let’s clarify: do you want the section_name or the section_number?
I don’t understand why @params[‘CourseSection’][‘section_number’]
would
be nil.
CourseSection is a hash in a hash, so by asking for @params[‘CourseSection’][‘section_name’] should I not recieve the
value
for section_number, being “153” in this case.
Okay, let’s clarify: do you want the section_name or the section_number?
@params[‘CourseSection’][‘section_name’] is nil. You should set this,
perhaps by having a form field in the previous view: <%= text_field
“CourseSection”, “section_name” %>
I don’t understand why @params[‘CourseSection’][‘section_number’] would
be nil.
CourseSection is a hash in a hash, so by asking for @params[‘CourseSection’][‘section_name’] should I not recieve the value
for section_number, being “153” in this case.
crap I can’t type today. section_name is actually section_number.
I don’t understand why @params[‘CourseSection’][‘section_number’] would
be nil. CourseSection is a hash in a hash, so by asking for @params[‘CourseSection’][‘section_number’] should I not recieve the
value
for section_number, being “153” in this case.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.