search for: people_helper

Displaying 2 results from an estimated 2 matches for "people_helper".

2006 Oct 24
4
Where to put a large constant?
In a 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...
2007 Jul 26
5
Coding standards and whitespace
...rc/documentation/tools/rcov.page doc/src/documentation/tools/spec.page doc/src/download.page doc/src/images/ducks1.png doc/src/index.page doc/src/upgrade.page example_rails_app/app/controllers/naughty_controller.rb example_rails_app/app/controllers/people_controller.rb example_rails_app/app/helpers/people_helper.rb example_rails_app/app/models/person.rb example_rails_app/config/boot.rb example_rails_app/config/environment.rb example_rails_app/config/environments/test.rb example_rails_app/config/routes.rb example_rails_app/db/migrate/004_create_things.rb example_rails_app/lib/tasks/bootstrap_rspec.rake exam...