search for: _form_background

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

2006 Oct 24
4
Where to put a large constant?
...nguages 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 that is messy. Is there a better way? -- Posted via http://www.ruby...