search for: peoplehelp

Displaying 1 result from an estimated 1 matches for "peoplehelp".

Did you mean: peoplehere
2006 Oct 24
4
Where to put a large constant?
...registration form I allow the user to select several spoken languages and of course to minimize tomfoolery I am using selects. In the view I have: <%= select(''person'', ''language1'', LANGUAGES, options = {}) %> In my people_helper.rb I have: module PeopleHelper # constant for language selection in ''_form_background.rhtml'' LANGUAGES = %w{Akan Algerian Amharic Arabic ... Xhosa Yoruba Zulu } end However rails still complains, "uninitialized constant LANGUAGES." I can put it above my person.rb model but th...