#938 ✓invalid
doctordjbrown

enum_string field declaration causes undefined method `underscore' for nil:NilClass

Reported by doctordjbrown | March 25th, 2011 @ 11:17 AM | in Hobo 1.3 (Rails 3)

I added

gender enum_sring(:Male, :Female)

to my field list and received this when trying to render a page:

NoMethodError in Patients#edit

Showing controller: patients; dryml-tag: edit-page where line #1 raised:

undefined method `underscore' for nil:NilClass
Extracted source (around line #1):

I've attached the source of the exception page.

Any thoughts on this?

DJ

Comments and changes to this ticket

  • Domizio Demichelis

    Domizio Demichelis March 28th, 2011 @ 10:32 PM

    Please, could you attach a bare app with the minimum code to reproduce? Thank you.

  • Domizio Demichelis

    Domizio Demichelis March 29th, 2011 @ 12:46 PM

    Please, could you upload the complete app dir, not just a few content? Besides, just for a more conventional app, please, change the :Male, :Female to the canonical :male, :female before uploading. Thank you.

  • Domizio Demichelis

    Domizio Demichelis March 31st, 2011 @ 01:22 PM

    • State changed from “new” to “invalid”
    • Milestone set to Hobo 1.3 (Rails 3)
    • Assigned user set to “Domizio Demichelis”
    • Milestone order changed from “197968” to “0”

    It seems that the app you uploaded is working without any problem. I deleted the DB, migrate it, and everything seems fine. Please, try it. Check your main app for the same problem. If the problem is in your code, you can post to the hobousers group.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Attachments

Pages