Displaying 20 results from an estimated 4000 matches similar to: "Select doenst pass the correct value"
2006 Feb 21
4
Select error
This code:
<p>
<label for="resource_type">Type</label><br/>
<%= select(:resource, :type, %w{ Web Data }, { :include_blank => true
}) %>
</p>
Produces this error:
TypeError in Resources#new
Showing app/views/resources/_form.rhtml where line #6 raised:
wrong argument type String (expected Module)
Extracted source (around line
2007 Oct 13
5
default date for date_select
Hi,
How can I set a default date for a date_select?
I''m trying to do something along the lines of:
<%= date_select("requirement", "target_date", :end_year =>
2020, :discard_day => true, :include_blank => true, :order =>
[:month, :year], :default => {:month => 10, :year => 2012 }) %>
but the default that comes up on the form is blank month
Overriding date_select in local project to use custom value rather than blank for starting option...
2005 May 08
3
Overriding date_select in local project to use custom value rather than blank for starting option...
I would like to have a date control on a page and I would like a
behavior similar to what you get using date_select with the
:include_blank => true option where the first value in the dropdown is
"- Month -", "- Day -", or "- Year -" rather than a blank value for
the respective month, day, and year select fields.
I took a look at the ruby source for
2008 Feb 24
3
1 error(s) on assignment of multiparameter attributes
I am trying to create a form for processing credit cards. For the
credit card expiration date, I would like to leave the day field out
of the form for obvious reasons. However, the following code is
producing an error for me.
Any ideas?
Thanks!
<p><label for="email">Expiration</label><br/>
<input type="hidden" id="user_card_expiration_3i"
2006 Apr 06
6
select method
The documentation states as an example:
select("post", "person_id", Person.find_all.collect {|p| [ p.name, p.id ] },
{ :include_blank => true }) could become:
<select name="post[person_id]">
<option></option>
<option value="1" selected="selected">David</option>
<option
2006 Jul 15
1
Trouble using date_select with blank options
I want to allow users to enter a day and a month, but not necessarily
a year. i.e. it should be optional.
If I select the day and month, but a blank year and then submit i get:
1 error(s) on assignment of multiparameter attributes
The paramaters regarding the date look like this:
{"date_of_birth(2i)"=>"3",
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 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 =
2006 Jan 04
5
How do I set the default value for date fields?
I want my date fields to default to NIL or "", because the presence of a
date means something. My problem is that rails is defaulting the fields
to today''s date automatically when I create a new record through the
scaffold. I tried removing the default ''0000-00-00'' and changing NOT
NULL to NULL, but both columns get today''s date as the default
2006 Apr 27
4
select item based on previous select list selection?
So I have a select list with a list of items. When a user selects an
item, another select list should have its default selected item set to a
specific item (the default associated with the first select list).
This is in a form to create a new task. The first select list is a list
of parent tasks. When one selects the parent task, the clients select
list must default to the same client as its
2007 Apr 14
1
how to add class to date_select helper
Hi,
I have this helper and would like to add a html class to each of the
select box''s it generates, however I have been unable to find a way?
<%= f.date_select ''date_of_birth'', :order => [:day,:month,:year],
:start_year => 1940, :end_year => Time.now.year, :include_blank => true
%>
Any suggestions?
thanks
john
--
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 Apr 19
2
select_tag and :include_blank => true not working
Guys,
I''m using select_tag to display a non-model dropdown, which works fine.
However, I''ve tried every which way to use the :include_blank => true
option, but it simply won''t display a blank value. Using :include_blank
=> true with select on model fields works fine.
Can someone please show me a working example?
--
Posted via http://www.ruby-forum.com/.
2020 Apr 15
3
Samba-tool error after update to 4.12.0
Hi everyone,
I have just updated samba from 4.11.6 to 4.12.0, compiled by the sources.
Everything was fine and AD server is ok , but when I call samba-tool this
error always appear:
ldb: unable to dlopen /usr/lib64/samba/ldb/local_password.so :
/usr/lib64/samba/libsamdb-common-samba4.so: version `SAMBA_4.11.6' not
found (required by /usr/lib64/samba/ldb/local_password.so)
ldb: unable to
2020 Apr 15
3
Samba-tool error after update to 4.12.0
That is correct. Most of the time this isn't an issue because the new
ldb modules, linking to the new symbol versions, overwrite the old
files on 'make install'.
However we chose to remove some obsolete ldb modules in the 4.12 cycle
and so the old modules remain, triggering these warnings.
We notice the old modules because we try to load all the modules during
startup of ldb to
2006 Jul 02
6
remote form w/ evalScripts:true
Hello. I want to select an item from a select list and have that
result in an ajax call that updates two sections on the page. Here is
the code in the controller
def create
...
render :update do |page|
page.replace_html ''list_items'', :partial => ''lists/list_items''
page.replace_html ''add_item'', :partial =>
2005 Dec 23
2
Bizarre problems with AJAX / missing variables
I''m having some really weird problems with an app I''m writing.
Everything is working as expected on my development machine (OSX,
Rails 0.14.4) but is cacking out with weird errors on the Textdrive
demo site (FreeBSD, Rails 1.0.0). It complains about missing
variables, with errors like this:
undefined local variable or method `rawcode'' for
2009 Sep 02
8
select_month helper
I''m trying to rewrite a fusebox-like application (Active4D plugin to
4D database) in RoR/postgres and I''m doing okay - but keep running
into things that stump me. It seems like it takes me hours to figure
out something that I could have written in pure code in minutes.
The select_month and select_day helper has been my latest waste of
time. All I''m trying to do is add
2008 Sep 21
5
Video card or driver doenst support enough textures +
I just installed Call of Duty 4, I when I try to start the game I get this message; Video card or driver doenst support enough textures for the DirectX 9 code path.
I've used the same videocard for CoD4 in Windows, and its working fine.
I have a Nvidia GeForce 7600GS card, and installed the drivers via Envy.
2010 Apr 13
2
Merge master.csv files
Hi there,
Does asterisk keeps the master.csv open between writes? Right now I have 2 asterisk nodes sharing every configuration file (by using a distributed filesystem) except the master.csv files. If asterisk does not keep master.csv file open between writes, then I can share the master.csv file between both nodes right?If not, then any suggestions to merge both master.csv files?
Thanks in