similar to: checkboxes for filtered search

Displaying 20 results from an estimated 4000 matches similar to: "checkboxes for filtered search"

2011 May 30
5
rails habtm checkboxes with jquerymobile
Hi guys, I have a habtm association working properly. My application consists of both a desktop and a mobile version. My mobile version is made with jquerymobile and I would like my checkboxes in the edit form to look like the checkboxes shown in http://jquerymobile.com/demos/1.0a4.1/#docs/forms/forms-checkboxes.html. My desktop code is the following: <%= check_box_tag
2006 Feb 05
1
Check/uncheck all checkboxes
Hello! I have this page where I list all users in a table. There is checkbox in every row. My User-model has a "checked"-attribute. I have implemented the checkboxes like this: <%= check_box("user[]", "checked") %> Which outputs this: <input id="user_12_checked" name="user[12][checked]" type="checkbox" value="1"
2006 Jul 14
2
multiple options & checkboxes
Hello, I''m trying to implement a checkbox option function, but I''m having a problem in visualizing how it needs to be implemented. Let me explain. I have a model (User) and another model (Category). I want the user to be able to select multiple categories in the form of checkboxes and have this information stored in the db. User habtm Category and Category habtm User But
2006 Jun 25
2
how to write the codes in view?(newbie question)
Hi. I have two tables and want to join them. <genres> id genre_name genre_order <links> id genre_id name symbol url order display etc The code of links_Controller is like below. def list @links = Genre.find(:all,:include => :link) end Below is the mysql log. SELECT genres.`id` AS t0_r0, genres.`genre_n ame` AS t0_r1, genres.`genre_order` AS t0_r2, links.`id` AS t1_r0,
2006 Jul 11
4
checkboxes with a has_many :through relation
All, I''m populating a view with checkboxes in a list. I want to be able to assign to my has_many relationship using the post values of these checkboxes. Essentially, I want to populate the relationship table which will create the correct join values in my model. Here is my check_box_tag code: <%= check_box_tag("@current_job[target_list_ids][]",
2006 Jul 03
9
checkboxes
in the mean time i am using a checkbox like this : <input type="checkbox" name="var[car]" <%= var.car ? ''checked'' : '''' unless @var == nil %> /> but i am sure there is something better than this in rails like <%= checkbox_tag ''var'', ''car'', :checked => true %> but this is not
2005 Dec 21
3
Checkbox readonly
I declare some checkboxes : <%= check_box_tag ''offers[]'', offer.id , @params[:offers].include?(offer.id.to_s) ,:readonly=>true %> the result is : <input checked="checked" id="offers[]" name="offers[]" readonly="readonly" type="checkbox" value="1" /> But readonly doesn''t work ??? -- Posted
2007 Jun 11
2
Column sort of checkboxes
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> I''ve gleaned a lot of good advice from reading this group and I''m hoping for more
2006 Jun 12
2
Validating a non-object attribute in a form via checkbox?
Hi there A user can place an ad with various attributes via a form; however, I want the user to check a box signifying that they''ve read the terms and conditions for use of the site. So the ''terms'' is not an attribute of the Advertisement model. I could check that the user has ticked the box in my controller but would like to bundle this up with the validation
2013 May 27
3
Ransack, acts-as-taggable-on and checkboxes in search form
need some help on ransack filtering. I have model Project, which has many tags through acts_as_taggable gem. Project.rb: class Project < ActiveRecord::Base include PublicActivity::Common belongs_to :customer belongs_to :category has_many :attachments, :as => :attachable has_many :reports, :dependent => :destroy has_many :messages, :dependent
2006 May 11
3
multiple checkbox values, convert to string, 1 db field
Basically what I''m trying to do is create a way for users to enter "keywords" that will then be searchable. I.e., when a user creates a new Item, there is also a keywords field in the database that is a string like "purple triangle free" -- but all the user sees when they are creating the keywords is a series of checkboxes like: __blue __red __purple __circle
2006 Apr 20
0
many many checkboxes
Hi *, Starting to try and figure out the best way to handle the next part of my first application. I need to provide a form which will host approx 60 checkboxes - each respective checkbox will need to relate to a boolean (tinyint? - I persume a boolean would be best, (ticked / not ticked)). I have had quite a google around on this and I have seen some tutorials where it is suggested to use
2006 Jun 04
4
Multiple checkboxes
Please could someone suggest what might be wrong here. In my view I''m displaying a series of check boxes and when the form is submitted I want the controller to iterate over the values and contatenate them all into a string "1" if the box was checked and "0" if it wasn''t. I''m new to Ruby and Rails and I can''t seem to get any values out of
2012 Apr 18
2
RoR - Search Forms with Checkboxes, display appropriate results
I have a form that allows me to search a hotel by city or name and by rating through radio buttons. It all works. However, my hotel model has_one :facility, this facility model is composed by several boolean fields (for example, roomservice:boolean restaurant:boolean and so on) The question is, I want to add checkbox fields for each facility I have and in the search form, when the user selects
2008 Jan 08
1
HOWTO: Add a new line, Remove new line?
Hello everyone, I have a couple of checkboxes, where each checkbox belongs to a specific input field (which has a value). So whenever the user clicks on the checkbox, each value of the associated input field is added up and placed in the ''result'' ID. I''m using unobtrusive Javascript to make this happen... However I want to able to add and remove a new line (checkbox
2009 Oct 06
1
Problems Processing multiple form elements generated by javascript actions
Hi all, After many days of struggling, I have a multi-model form with ajax elements more or less working, but I''m hitting a wall with a few bugs that I can''t figure out. Guidance would be very much appreciated. I''m using the Ryan Bates technique from Advanced Rails recipes to dynamically add and remove elements on a multi-model form.
2005 Oct 26
0
observe checkboxes
Hello, I was wondering how I could solve the following problem. I''ve a table with a list of checkboxes like: "<table> <tr><td><input id=''toggleSel[]'' type=''checkbox'' value='''' /></td></tr> <tr><td><input id=''toggleSel[]'' type=''checkbox''
2006 May 31
2
Checkbox Help
Hi guys, I am need to help again. Sorry for the newbie query but would definitely appreciate the help. Here''s the q: I generate a list of items from the database and render them out with a checkbox beside them. A user may click more than one item and I would want to save all checked items into another table. I have been able to give each checkbox a unique id . Would anyone be able
2005 Aug 19
0
Form.Element.getValue for checkboxes and radios?
I notice that Form.Element.getValue() takes a single element or id and returns the element name and value. How does one handle getting the values of checkboxes and/or radios which share the same control name, save getting them one at a time? <fieldset> <legend>Medical History</legend> <input name="history_illness" type="checkbox"
2006 Apr 27
2
check_box_tag and :disabled => ''disabled'' problem
I''ve been using the check_box_tag to generate checkboxes for an application I am working on and I''ve run into a little hiccup. When I set the options for the checkbox to be { :disabled => "disabled" } the checkbox becomes disabled, as I would expect. However, if I set the checked value to true and keep the disabled option, the value for the checkbox is not returned.