Displaying 20 results from an estimated 10000 matches similar to: "How to populate form dropdown with 2nd item of model"
2006 Aug 06
1
Newbie: populate 2nd dropdown list based on user''s selection in 1st dropdown list
Hi,
I am creating a form that a user can post a message based on his
selection on category and subcategory. (A category has many
subcategories.)
How do I dynamically populate subcategory dropdown list when user
chooses a category from category dropdown list?
Thanks in advance.
--
Best regards,
Ming Ma
2006 Apr 27
0
Dropdown list to populate drag and drop sortable list
I''m listing bands playing shows. I want to be able to add and sort the
lineup for each show in a single form. Users select a band playing
from a dropdown list, which (using Ajax) adds the band to an unordered
list which they can then re-arrange.
Are these any tutorials online that cover this? Or can anyone shed any
light on it?
I''ve used a modified version of Cody Fausers code
2006 Jan 01
7
Can''t get select helper to populate dropdown w/default value
Guys,
I searched this forum and found plenty of people having this problem,
but I didn''t see any definitive solution. Usings Rails 1.0.
When I edit an existing record, I can''t get the basic "select" helper to
display the current value contained in the field of the record. All of
my other (text) fields populate correctly with current field values.
There appears
2007 Jan 22
0
dropdown list
hi
i am new to ruby and i have installed ferret for search using text box
for search by the string in
the text box
insted of that i am trying to implement a drop down list,with the
selected item in the drop down it should search. problem hear is that
the search is not going by the item please help me
The code is:
<input type="text" name="query" value="<%= h
2006 Mar 09
0
Re: Displaying related tables in forms.. probably an easy qu
Steve -
That was the issue.. It seems obvious now, but I needed to reference
Property.PropertType.name instead of property.propertytype.name
Thanks!!
Brian
-----Original Message-----
From: rails-bounces@lists.rubyonrails.org
[mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Steve
Koppelman
Sent: Wednesday, March 08, 2006 5:00 PM
To: rails@lists.rubyonrails.org
Subject: [Rails] Re:
2006 Jun 05
2
dropdown
I''m using a dropdown on my form for a simple cms which displays the
pages from the database. I want to add some options to the dropdown
that are not in the database. Is there a way to do this?
Here''s my code so far:
<p><label for="navigation_link">Link</label><br/>
<%= select("navigation", "link",
2013 Jun 18
1
How to Pass Jquery selected dropdown values and radio button values to controller
Hi,
I have an advance search page and its code is as follows -
I have written my code like this
<div class="container">
<%= form_tag search_index_path, method: :get do %>
<%= radio_button_tag ''user_type'', ''customer'' %><p>Customer</p>
<%= radio_button_tag ''user_type'',
2006 Jun 08
1
built-in dropdown jumps?
Hey everybody! I was just wondering if Rails'' javascript library
includes something as simple as making a dropdown that jumps to the link
when selected without needing a "submit" button. I see a bunch of AJAX
effects and draggable-element stuff, but all i need is a simple
dropdown... should I code it myself?
--
Posted via http://www.ruby-forum.com/.
2006 Apr 22
3
Creating a select dropdown box with links to methods
What would be the best way to create a form select dropdown box and upon
"submit" have it directly go to a controller method view?
I have something that somewhat works, but I think there is probably a
much easier way to do it. As of now, I have the dropdown list which
when the form is submitted is handed to a controller method which
basically
I have my dropdown box:
<%=
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
2010 Apr 10
2
Need a dropdown having "more.." option
I have a collection of products that I am showing in a dropdown. Now
at the first view it will show only first 10 products in the dropdown
with an option "more..." at last. if user clicks the "more..." he can
see all the following products in that dropdown list (this is not any
ajax request, just javascript show/hide). Of course the more... option
will hide when showing all
2006 Apr 07
3
Inline editing of datetime and dropdown select objects?
I don''t believe that Rails has support for the inline editing of
datetime objects or dropdown combo boxes.
Does anyone have a helper function or two that would allow me to do such
a thing?
--
Posted via http://www.ruby-forum.com/.
2010 Jun 09
1
To display a button onselect of an option from dropdown
Hi
Is there an option of displaying a button only when you
select an option from dropdown.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this
2006 Jul 26
1
List directory names in a dropdown control?
I''ve been trying to find the "right" way to do this and I''m now appealing to
the Rails masses. :)
I want to list all the directory names in a specific location and have just
the directory names appear in a dropdown control for the user.
The Dir.entries("somepath") includes the "." and ".." folders plus all files
and folders.
The
2007 May 13
1
Dropdown boxes in tcltk and R
Hello,
I'm very much a newbie in R and more so in tcltk so apologies if this
question is stupid. Basically I am trying to use the combobox example
found here:
http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/DropDown.html .
What I want to do is in that example get fruitChoice as a variable in R
in general. When I run that code, however, and the ask for fruitChoice
it says
2008 Jul 26
1
Dropdown selected value not reflecting in edit view
hi
I am facing the following issue:
I have the following dropdown, in the new view
select_tag "experience[]", options_for_select([[less_than_1_year,
[0,1]],[between_1_and_3_years, [1,3]],[between_3_and_5_years,
[3,5]],[between_5_and_7_years,[5,7]], [between_7_and_10_years,[7,10]],
[above_10_years,[10,50]]])
The selected value of the user is not getting reflected in the Edit view
of
2006 Jul 13
2
Simple dropdown menu
Hi, I''m quite new to this language and I''m having trouble finding out
simple things like a dropdown menu in rhtml. I know I have to use <%
select_tag %> but I''ve read lots of different ways to put in the options
so I''m a bit confused. Options are hard-coded for the menu I''m trying to
create so no database is involved!
Thanks v much!
Bex
--
2010 Dec 02
2
foreman dropdown menu broken
Hi,
i just installed foreman from the git repository and the dropdown menu
does not work. Don''t know xhtml well but opera tells me:
Uncaught exception: ReferenceError: Undefined variable: Form
Error thrown at line 3, column 0 in http://130.149.58.152/:
new Form.Element.EventObserver(''settings_dropdown'',
function(element, value) {window.location.href = value;})
2006 Mar 08
2
Displaying related tables in forms.. probably an easy question!
Hey All,
I have two tables.. One belongs to another. Why can''t I reference
table1.table2.attribute?
Specifically, using scaffolding:
property.rb -
has_one :PropertyType
property_type.rb -
has_many :Properties
property_controller -
def list
@property_pages, @properties = paginate :properties, :per_page => 10
end
list.html:
1. <% for property in @properties %>
2.
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