Hi folks.
I'm following the Action View Helpers tutorial but something's going wrong.

Everything goes well until step 2.5, where we populate the database with
some sample data.

When I run the application, I can view the "index" and "show" views, but the
"edit" and "new" views (where the 'editable_student_form' partial is
rendered), I'm getting a "NoMethodError" when calling
"select_country_choices" (at least is where the trace stops).

The error message is:

You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.map"

I'm not getting the "select_country_choices" when I call "Student.methods"
or "StudentsHelper.methods" in Rails Console as well.

How can I get things right?

Thanks,
Gabriel.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to