Displaying 20 results from an estimated 8000 matches similar to: "selected values in combo box"
2006 Aug 02
2
multi dimensional array
how to implement multi dimensional array in ruby
in ruby multi dimension array look like tree structure
plz help me & explain with code
have a pleasant day
thx
narayana
--
Posted via http://www.ruby-forum.com/.
2006 Aug 05
2
plz do favour in active record
hello
I want to do like the below code
name=[''net'',''gross'',''amount'']
avail= Avail.find(1)
return avail.name[0]
but it gets error
I want to give " avail.name[0] " like this, rather than avail.net
directly,
can u guys plz help me, how to do this plz explain with code
advance thx
have a pleasant day
narayana
--
2006 Jul 26
1
Plz answer my query in date_select
hello gentlemen
I want to set my (default)own date in date_select, how to do this, plz
explain with example
advance thx
have a nice day
regards
narayana
--
Posted via http://www.ruby-forum.com/.
2006 Jul 17
4
how to invoke model methods in controller & vice versa
hello
how to invoke model methods in controller & vice versa
please explain with examples
advance thanx
--
Posted via http://www.ruby-forum.com/.
2006 Aug 04
1
How do i create & insert data into xml file in ruby
hello
How do i create new xml file & insert data into that new xml file in
ror
plz explain with example code.(say i have to insert all the values of a
table into xml file )
advance thx
Have a pleasant day
narayana
--
Posted via http://www.ruby-forum.com/.
2006 Aug 07
1
how to create new folder
hello
how to create new folder /directory in ruby. how to check whether the
directory is exists. plz explain with example code
advance thx
narayana
--
Posted via http://www.ruby-forum.com/.
2006 Jul 17
2
how to manipulate the OUTLOOK EXPRESS in Ruby
hello
how to manipulate the microsoftOUTLOOK EXPRESS in Ruby
please explain with code
thanx
--
Posted via http://www.ruby-forum.com/.
2006 Jul 16
6
using collection_select
hello,
supposing i have a User class that contains a Wibble
class User < ActiveRecord::Base
has_one :wibble
end
in my view i have
<%= collection_select :user, :wibble, Wibble.find(:all), :id, :name %>
when i post, i get an error like
"Wibble expected, got String"
how/where am I supposed to convert this posted wibble_id into a
Wibble, or am I using collection_select
2006 Jun 10
4
collection_select question
How do I specify which option should be initially selected when using
the collection_select command? I''ve tried:
collection_select(:selectionfilter, :producer_id, Producer.find(:all),
:id, :name, {:include_blank => true, :selected_value =>
@initial_selection})
However it doesn''t return the desired results (the option with the value
of @initial_selection selected).
2006 Feb 27
0
Example code for select_from_db (a.k.a. combo box)
I''m not asking for help this time! :) :) In almost every Rails
project I create, I find that I want a select() popup menu that is
pre-populated by data from the database. Also, I want an "Other..."
option that presents a text_field_tag to input another (not
presented) option (basically a combo-box). In an attempt to be as
DRY as possible, I''ve come up with
2006 Nov 15
1
how to handle alert box message in selenium test?
hi guys,
how to handle alert box message in selenium test?
i want to handle alert box. i want to test(verify text present) the
text in alert box & then click ok to alert box. how can i do this.? plz
tell me...
advance thx.
regards,
karthick.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2006 Sep 29
7
help needed in UNIT Testing
hi guys,
I needed help in Unit test. i just try to save new data intomy test
database.
but save method does not works for me. the result shows here
def test_new_avail
avail = Avail.new(:vendor_id => 1,
:last_mod_by => ''Murali'',
:updated_at => ''2006-08-17 13:14:59)
assert avail.valid?
assert avail.save
end
2006 Jun 25
3
select box''s
Hi,
I have this code for a select box,
<%= select("plugin", "plugcats", Plugcats.find_all.collect {|p| [
p.title, p.id ] }, { :include_blank => true }) %>
at the minute it extracts teh requried data, but submits the data as
params[''plugin''][''plugcats'']
how can I get it to submit it as
2006 Jul 04
1
Select Box problem in the controler with Ajax
Hi,
I have a selectbox that updates a given span area when a user selects a
value. The selectbox has the option :include_blank => true. The
controler will fetch the ID of the selected option in the combo box and
sends the description of the item with the same ID.
The problem is that the user is able to select the empty option, and the
controler will not be able to fecth the ID. This
2009 Aug 01
23
Hi doubt in unit testing
def test_check_for_validity
post=County.new(:name=>"myname",:description=>"mydesc")
assert post.save
end
above is the method and when i run unit test it is saying as
1) Failure:
test_check_for_validity(CountyTest) [/test/unit/county_test.rb:10]:
<false> is not true.
what does it say i cannot under stand
please help
--
Karthik.k
Mobile -
2006 Oct 26
8
doubt in Selenium test
Hi guys,
I am just started to do selenium test in rails. can u guys plz tell me
how to write selenium test for the below code. for ex: i want to use
click action in selenium test for the below code
<a href="#" onClick="javascript:show_form(''short'');">Add a Short Media
Buy</a>
advance thx
regards,
Karthick.
--
Posted via
2006 May 05
1
select :selected doesn''t actually generate a selected option
All,
I have code that looks like this:
<%= select(''date'', ''month'', [
["1?","1"],
["2?","2"],
["3?","3"],
["4?","4"],
["5?","5"],
["6?","6"],
["7?","7"],
["8?","8"],
2006 Aug 09
2
how to access selected value in controller action
I have this in a view:
<%= start_form_tag :action => ''create_price'', :id => @media.id %>
<%= select("media", "price_code_id", PriceCode.find_all.collect {|pc|
[pc.name, pc.id ] }, { :include_blank => false }) %>
<%= submit_tag ''Add Price Code'' %>
<%= end_form_tag %>
My question is, how would I access the
2006 May 18
4
Problems using ''select''
I use :filter action to display form and allow record filtering. It
contains form with
combo box, submit button and list of record matching value in combo.
filter.rb:
class Filter
attr_accessor :owner
def initialize(params)
@owner = '''';
if !params[:filter].nil? and params[:filter].has_key?(:owner)
@owner = params[:filter][:owner]
end
end
end
Controler:
@users =
2007 Nov 06
2
retrieving values from combo box
<td><p align="right">Jul/10:</td>
<td><%= select_tag "jul10",
"<option>Y</option><option>N</option><option>R</option>" %></td>
At the moment, my html form displays this combo box the way i want it,
but it does not record down what the user has selected and save it to
the database
help please,