similar to: Best way to validate these dropdowns/multiselect options

Displaying 20 results from an estimated 4000 matches similar to: "Best way to validate these dropdowns/multiselect options"

2007 Feb 22
0
AJAX in-place editing of checkboxes and dropdowns?
I''m looking for a plugin or general directions on where to find code implementing not only in-place editing of text fields, but also of dropdowns and checkboxes. There is a recipe in "Rails Recipe", but it only covers dropdown menus, and chances are that there is a plugin somewhere out there. However, I''ve only found "InPlaceControls", which, it
2006 Mar 22
1
HABTM / Dropdown Help Needed
I''m terribly new to Rails, so bear with me. I have an application I am working on which deals with projects and subcontractors. There can be several subs on each project and each sub can work on several projects. I have my join table set up and has_and_belongs_to_many in both models. If I manually put data in the join table, this works in my show view: <% for subcontractor in
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
2013 Mar 10
1
BEST WAY TO DEVELOP DYNAMIC DROPDOWNS
Hi, I have these models : Country, State, City . Each of these model has a dropdown, when i select a country i want to populate state acording to the selected country and also city with state selection. I know that to do this i have to use jquery/ajax , but i dont know wich is the best way to do it. I have this example as reference :
2006 Jul 20
1
cleanest, least hideous way to do dropdown date validation?
My customer has dropdowns like this: Year Month Day If you submit with month selected and year blank, it subs in a year arbitrarily. Worse still, it subs in the year 5. I have no idea why. It seems a pernicious default. Anyway, they''re developing an app, they''re a designer turned coder, turning to a real programmer (me, allegedly) to make sense of the madness they''ve
2006 Sep 13
0
Dependent dropdowns
hi, it is possible to recreate this example for dependent drop-downs(http://www.dse.se/pulsar/AjaxDemo/AjaxDemo.html?countryId_old=119®...) i have 4 tables : country, region, city and customer with dependent foreign key. id_loc.customer ->id_loc.city->id_loc.region->id_loc.country i have only generated 4 scaffold for the tables. thanks
2006 May 11
5
Recommendations for Apache 2 with mod_fcgid
Hi, Have been pulling out my hair for the last few days wondering what I''m going to deploy my site onto. I currently have FreeBSD 4.7, Apache 1.3.3, PHP 4 and MySQL 4 running a year-old PHP site. Dated stuff I know! The new version of the site will be entirely Ruby on Rails, and I am wondering what order I should be doing things in terms of upgrades and installation. I want to be
2006 Mar 22
2
habtm vs. has_many/belongs_to
In AWDWR David says (pg 232), "When a Join Wants to Be a Model: While a many-to-many relation with attributes can often seem like the obvious choice, it?s often a mirage for a missing domain model. When it is, it can be advantageous to convert this relationship into a real model and decorate it with a richer set of behavior. This lets you accompany the data with methods. As an example,
2006 Feb 28
1
Validate two fields so they do not match
Hey all, I have two form fields (select dropdowns) that are ''startlocation'' and ''endlocation''. These two cannot be equal to each other on save and I am wondering how to put validation into the model for this. Is is possible to do it in the model, or do I need to do this in the controller? Thanks in advance! Ryan -- Ryan Prins rprins@gmail.com
2005 Dec 20
2
Designing a data-entry screen
Here''s what i''m trying to do: Have 3 dropdowns up the top of a page, being: year, month, department, and group. Also a button underneath that called refresh. When you click refresh, it finds the 1 row of data from the database for that year/month/dept/group and populates the fields into a set of textboxes below. Then you can edit what is in those textboxes, and click a
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.
2006 Apr 20
4
Small Date Formatting Question regarding datetime_select()
Is there a way to make datetime_select() dropdowns work on a 12hr clock? I need to make a input field that works exactly like the reminders datetime selecton dropdowns in Backpack to populate a datetime field in my DB. i.e in the format: month, day, year ? hour (1-12) minute am/pm. Should I change my database to have a separate column for date and one for time and use date_select()? Can
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
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 Mar 19
0
WINS Subnet browsing
Hi, I'm trying to setup a Server only for Subnet Browsing. The smb.conf on the server looks like: [global] workgroup = some.work.group server string = hosts allow = 192.168.0.0/24 192.168.1.0/24 192.168.2.0/24 192.168.3.0/24 192.168.3.0/24 hosts deny = 0.0.0.0/0 interfaces = eth1 eth1:1 eth1:2 eth1:3 eth1:4 bind interfaces only = yes wins support = yes domain
2006 May 30
3
extra attributes in habtm
Hi, Posting here since issue tracking isn''t the best place to discuss. I can understand habtm is moving towards deprecating support for extra attributes in join_table, and to use :through for those cases instead. To clarify, patch<http://dev.rubyonrails.org/attachment/ticket/5216/habtm_join_table_test.patch1.diff>for #5216 <http://dev.rubyonrails.org/ticket/5216>
2006 May 24
2
"Stack Level Too Deep" issue in HABTM Unit / Functional Test
Hello guys. I was able to figure out that my "stack level too deep" error I was getting with my HABTM destroy method was the result of a bug in rails 1.0. I upgraded to 1.1.2 and now the views and any console-run commands for destroying AR objects linked together via HABTM work just fine. I have HABTM setup between stories and submissions. The issue is that the destroy methods in
2006 Jun 05
7
Is HABTM Dying?
For a while, I''ve been getting that HMT is replacing HABTM. It appears that HMT can do all of what HABTM can do and more. The question is: Should I stop using HABTM? Let''s take a simple case: A case has many categories For a given category, there are certain valid statuses Category has_and_belongs_to_many :statuses Status has_and_belongs_to_many :categories Question: Is
2006 Jun 30
2
how to HABTM with STI ??
Hello all This is my first post so excuse the basic question. (and any repeats I just got an email saying this post was too big so I have re-submitted a smaller version) I was following the thread on http://lists.rubyonrails.org/pipermail/rails/2006-May/038988.html regarding the STI on HABTM for RoR. I have a very similar problem and was hoping for some help. I have the
2006 Feb 16
1
HABTM -VS- belongs_to/has_many, for self-referential joins
Ok, David says on page 241 that sometimes a many-to-many relation with attributes are better implemented as an actual model instead of using HABTM. Well, I''ve got that situation and I can''t figure it out. All of the examples in the book have HABTM examples between 2 different tables, but I want to have a HABTM relation on 1 table with itself. (e.g., if I have a table Things,