search for: multiselects

Displaying 20 results from an estimated 26 matches for "multiselects".

Did you mean: multiselect
2006 Jan 13
2
Select multiple question
I''ve got the following code in my view: <select name="user[member_list][]" multiple="multiple"> <%= options_from_collection_for_select @someUsers, "id", "username" %> </select> I have a few other fields, textboxes, etc. within the form. When I go to save the info, the textboxes all save with their content, but the select box
2006 May 28
0
Best way to validate these dropdowns/multiselect options
...ue and another for the verbose description. I am getting the editing/creation stuff working fine. The dropdowns work with a belongs_to/has_many relationship, while the multi-selects work on a habtm/habtm relationship. However, I now want to validate these selected options in the dropdowns and multiselects (in a way akin to standard model validations so that the new/edit page reloads with the submitted data and error messages). By validating these I mean that each option will be checked to see if that option actually exists in the database or else it will not save the record. Obviously want to pr...
2008 Nov 14
0
Variation on my Mechanize MultiSelect Question
Hello, Has anyone had success submitting forms that have a multi select drop down boxes? I have worked on this for 3 days and have not found the solution and today I found a post that seemed to suggest that I need to do this in an alternative way. http://wiki.m001.net/technical/show/HowtoPostWithMultiselectList, but I really see this as cumbersome and less than ideal. I can already see
2005 Aug 07
11
HABTM Movable Select Box
Hi, I found it a while ago, an add-on to Rails for supporting movable select boxes, but I searched through the wiki and the mailing list and couldnt find what I was looking for. I was hoping someone might know of or remember something about the project. Thanks, Dylan.
2005 May 17
2
Noob - ActionView::Helpers::FormOptionsHelper::select
Hi, I''m just starting with Rails and i''m trying to do something like this: <%= start_form_tag :action => ''add_user'', :id => @social_event_group %> <%= select ''user'', ''id'' , User.find_all.collect {|u| [ u.login, u.id ] }%></p> <%= submit_tag "Add User" %> <%= end_form_tag %>
2017 Jul 10
7
[PATCH 0/5] various improvements for make-template.mk
Hi, this series improves the generation of Debian templates, automating basically almost all the steps needed. Also, it fixes the generation of aarch64 images with NVRAM, which is currently removed too soon, and thus not saved and compressed. Thanks, Pino Toscano (5): builder: templates: update Debian preseed from Stretch builder: templates: generalize debian location builder: templates:
2006 Oct 18
1
optgroup and Javascript Issues
Is there a way to walk a select box that has multiple enabled and a few optgroup mixed in with other groups? The following seems to work without the optgroup tags in a multiselect list box. I have tired going threw the children of the optgroup but i was unable to pull a valid .value or .selected. Any Ideas? Thanks. var objGroups =
2012 Jan 05
6
assest pipeline how to exclude some css files?
In my assets I have intranet |_1.css.scss |_2.css.scss internet |_1.css.csss application.css application_internet.css application_intranet.css 1.css.scss 2.css.scss 3.css.scss intranet and internet are directories. In my layout I want to exclude the files under internet and intranet. I have created application_internet.css /* * application-internet.css * *= require_self *=
2006 May 23
10
throttling...
Is there a way to throttle the firing of updater requests easily with Prototype? Thanks, mark
2006 May 01
0
Passing an Array to a hidden field
I have been trying to figure out the best way to pass an array back and forth between a hidden field in a form and a controller. I am working on an app that the user can add group members to and decided the best and most user friendly is to show the user a text field to input the name of the member. This field has auto complete on it. When they submit the member is added to an array in
2005 Nov 22
3
non model select_tag problem
What am I doing wrong here: select_tag(''website_ids[]'', options_from_collection_for_select(Website.find_all, ''id'', ''name'', params[:website_ids]), {:multiple => true, :size => 5}) It works fine except that it does not display the selected options once the form is submitted (it submits to the same page). The
2011 Jan 08
9
options_for_select.
Even reading the documentation I can not figure out what is the select_tag difference between this: <% = select_tag (bags [], "options_for_select (bags.collect @ {| bb | [bb.bag_type, bb.id]}, ruser.bags.collect @ {| ub | ub.id}), {: multiple => true,: id => "bags"})%> and this: <% = select_tag "bags [], " options_for_select (bags.collect @ {| bb
2006 Dec 24
0
[800] trunk/wxruby2/doc/textile/treectrl.txtl: TreeCtrl#traverse has moved to wx sugar
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2013 Nov 25
6
[PATCH/RFC OSSTEST] Debian PV netboot guest test
I''ve been working on this on the odd occasion, I think it mostly works, or it did last I tried which was a while back. I''m sure it is too hacky in places. My plan was to clean it up on the next test day. I''m mostly just sending this for Wei''s benefit since he is independently looking at adding Debian HVM guest tests for OVMF purposes. Ian. commit
2007 Jan 11
2
In-place editor for a whole form?
I want to implement in-place editing for a hierarchical structure where the nodes are not simple text fields, but need to be represented by at least two input elements. The Rails helpers only support in-place editing for a text field, scriptaculous''s controls.js beyond that implements support for an in-place editor containing a select element. I need an editor where I essentially
2006 Jan 25
17
Lookup pattern in Ruby
Hi folks, I''m curious how a lookup with a large group of values would be handled in Rails. For example, I have a (contrived) AnimalType filtering a list of many Animals--more than can be presented comfortably in a dropdown box. Therefore I need to either redirect to another screen to select an animal (returning after the selection is made), or show a dialog--modal or otherwise--to
2005 Jun 29
14
Unobtrusive scripting?
Currently, pages generated by Rails tend to be sprinkled with JavaScript. This happens, because the various helper methods work only locally and simply append to the output. In order to hide the JavaScript away, rendering would probably have to be changed. A way I can think of is that a page-specific script is included in the head of the document and JavaScript code is not written to the
2006 Dec 05
0
[779] trunk/wxruby2: Added TreeCtrl#traverse method and documentation
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2013 Dec 11
29
[PATCH RFC V2 0/6] OSSTest: OVMF test job
RFC v2 of this series This series implements a basic test job for OVMF guest. The test case will install an OVMF guest and try to boot it. It is also possible to derive a debian HVM installation test case from ts-ovmf-debian-install - the only difference should be the BIOS option. I tested running the test script without specifying BIOS, it worked fine. I just didn''t figure out a
2007 Apr 13
0
[956] branches/wxruby2/wxwidgets_282: Additions to TreeCtrl API 2.6->2.8
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding: