search for: xhosa

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

Did you mean: xhost
2006 Oct 24
4
Where to put a large constant?
...;%= 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-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received t...