search for: language1

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

Did you mean: languages
2008 Jan 18
1
validation - writeback in forms
hallo, i have a form like this: <% form_tag :action => "foo1" <%=select_tag ("user", "name", options_for_select(someArray))%> <%=select_tag ("formdata", "language1", options_for_select(someArray))%> <%=radio_button ("formdata", "language1_level, 3%> <% end> the controller has 2 functions, foo0 (displays the formular) and foo1 (validates data in params[:user]) if there is something wrong it renders the foo0 again, but o...
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 complai...