similar to: Different class for a data_select

Displaying 20 results from an estimated 60000 matches similar to: "Different class for a data_select"

2011 Mar 21
1
Trouble with simple R list concatenations
PROBLEM How can I concatenate the following lists into ONE LIST WITHOUT the unhelpful message "operator is invalid for atomic vectors"? Combine as a data frame? EXAMPLE Birth_Date <- NULL Birth_Date[1:3] <- c("01/17/1939","01/17/1949", "01/17/1959") Later_Date <- NULL Later_Date[1:3] <- c("01/17/2009", NA, NA) Names
2012 Feb 01
12
date validation in rails 3
consider scenario, User model with name, birth_date fields (here birth_date is not mandatory field) inside view form birth_date is assigned as ''31/31/1985'' which is invalid ideally user object should be invalid and while save raise an error on birth_date field but that''s not happening and user object gets saved with birth_date as blank which is completely misleading.
2010 Nov 28
2
Dynamic find_by method returning nil in a class method
I have a user Model with a class method that I am using to do some authentication basically something like this class User < ActiveRecord::Base attr_accessor :password attr_accessible :first_name, :last_name, :email, :birth_date, :sex, :password, :password_confirmation email_regex = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i validates :first_name,
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 Aug 02
2
Problem with date_select
Hi all. I have a big problem with date_select helper, because i guess it can''t resolve local variables to set correctly selected date. Small example: <% @client.charge_regs.each do |creg| %> <%= form_remote_tag with_progress(:url => { :action => ''foo'' }) %> <%= date_select ''creg'', ''valid_before'' %>
2005 Feb 15
5
date_select where to add "class"=>"something"
Hi, I''ve looked on api.rubyonrails.org but I''ve not found how to add to a date_select(object, method, options = {}) a class option to set the class of all the select tags. I''ve tried using "class" => "myclass" in thoose ways: <%= date_select("costo", "data", "class" => "testo" ) %> <%=
2006 Jul 24
1
Default in date_select
how to set dafault date in date_select plz explain with example advance thx have a nice day -- Posted via http://www.ruby-forum.com/.
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 24
0
set day in date_select
hello gentlemen how to set default day and default month in date_select. plz explain with examples advance thx have a nice day narayana -- Posted via http://www.ruby-forum.com/.
2007 Apr 25
2
form_remote_for, reloaded
Hi, being relativly new to RoR, I''m having a problem which I found described in this forum and somewhere else - but with no solution. I know, that it may be bad to mix table and form tags, but the first solution of an in place editing within a table looked nice: Version using form_for: <tr> <%form_for :time_record, :url => { :action => "add_time_record" } do
2008 Jun 17
0
how to set tabindex in date_select
<%= date_select(''user'', ''birthdate'', { :start_year => 80.years.ago.year, :end_year => 12.years.ago.year } ) %> work in rails 1.2.2 date_select(object_name, method, options = {}) I try many times but also didn''t know how to set tabindex in date_select --~--~---------~--~----~------------~-------~--~----~ You received this message
2007 Nov 03
3
Birthdate validation
Hello everyone, I''m almost cracking my head trying to do this birthdate validation. It turns out that I can only accept users with at least 18 years old and I''m trying to validate it writing this code on my user.rb fil at app/ models class User < ActiveRecord::Base validates_presence_of :full_name validates_presence_of :street_address validates_presence_of :city
2008 Jun 26
2
Problem with date_select after Rails 2.1 upgrade
Folks, I think I should start a new thread for this, because a similar one I saw is a bit old and the resolution there doesn''t seem to apply to what I''m running into now. Anyway, my date_select calls are bombing on me with the exception: ---- ActionView::TemplateError (wrong number of arguments (3 for 2)) on line #8 of entries/_dates_form.haml: 8: = date_select(
2006 Nov 04
2
date_select parameter
Trying to add start year to date_select <%= date_select(:start_year => 1980)%> It''s throwing an exception "wrong number of arguments (1 for 0) Can''t I add a start_year, API shows this option ? TIA Stuart http://en.wikipedia.org/wiki/Dark_ambient --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the
2009 Mar 13
2
date_select and HTML options?
I have the following code, but can''t seem to get the class attribute to show up in the generated select elements. I saw something about a bug/patch. However, as am still learning RoR I didn''t want to jump to conclusions. Anyone see anything wrong: <%= f.date_select :expiration_date, :order => [:month, :year], :discard_day => true, :class => "dtfld" %>
2006 Sep 12
1
How to use a text box instead a lis for year in date_select
Hi, I have a date_select in my application and is used to select birth date of authers. So it is quite long list of years in drop down list and seems not practical. I want to have month and date drop downs as it is and to use a text box to enter only the year. Is it possible with date_select? Thank you. Sameera -- Posted via http://www.ruby-forum.com/.
2006 Dec 10
2
set specific date with date_select
Hi All I seem to have a problem with date_select methods. I cannot set a default date. I tried the following: <%= date_select( "post", "written_on", :selected => Date.new(2005,3,31), :order => [:day, :month, :year] ) %> But still I get todays date :( Any suggestions what I do wrong here ? Thnx a lot LuCa -- Posted via http://www.ruby-forum.com/.
2006 Aug 31
0
date_select error
Hi, when I try to use a date_select like this: <%= date_select(:contact, :event, :discard_year => true) %> I get the following error: 1 error(s) on assignment of multiparameter attributes Ticket #3811 (http://dev.rubyonrails.org/attachment/ticket/3811/date_helper_megapatch_against_1.1.2.0) Says it''s already corrected but I''m using rails 1.1.6 an still get the error.
2006 Nov 18
0
date_select-like functionality for phone numbers
Hi all, I''m trying to achieve something similar to what date_select does but for a phone number field. Whats the best way (or can you point me to the date_select related code) to do this? Thanks! Abdullah --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2007 Jul 04
0
Multiple date_select
Hi, I tried to create 2 date fields with date_select in ruby. But the names assigned to the two date fields are the same(date[year], date[month] and date[day] for both) when I view the page source. Is there any way to assign a different name to the second date_select field? Or in what else way can we use two date fields in a form? Please help. Thanks -- Posted via