Displaying 20 results from an estimated 60000 matches similar to: "Using date select in rails."
2010 Aug 19
6
Depreciation warning when running a db migrate!
Hey,
Whenever i try and run a db migrate i get this error:
DEPRECATION WARNING: Rake tasks in vendor/plugins/livevalidation/tasks
and vendor/plugins/restful-authentication/tasks are deprecated. Use
lib/tasks instead. (called from
/Users/Zack/.gem/ruby/1.8/gems/rails-2.3.8/lib/tasks/rails.rb:10)
I tried moving the different plugins task rake files to lib/tasks and i
got no error but the database
2010 Jul 15
2
Can partials be accessed from two views?
For me to keep my application DRY i need to be able to have partials
that can be accessed from two views. How is would I go about doing this?
Many thanks,
jakx12
--
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
2010 Aug 13
4
Rails and Oracle - can select date but cannot save
I''m seeing a behavior in Rails that I find very strange. Having worked
quite a bit with Oracle with other languages I would always dutifully do
ALTER SESSION SET NLS_DATE_FORMAT = <my_date_format> and ensure I use
that date format in my application.
With Rails I still have not figured out how to execute an ALTER SESSION
statement after connecting to the database (I''m using
2012 Oct 30
1
pass javascript date variable to rails controller as params
I have an application where jquery fullcalendar is implemented. On day
click I need to pass the selected date as params to rails controller.
When I alert the date inside dayclick function, I am getting the date in
the format of "Tue Oct 30 2012 12:40:20 GMT+0530 (IST)".. But when I
pass as params in jquery ajax to rails controller, it is passing blank.
How do I get it in rails
2010 Jul 31
5
date_select Year as a text_field
Hey all,
Using date_select in a form, how can I make the Year field a
text_field instead of a select? It looks like it will take more than a
simple modification of the date_select method.
Thanks in advance.
Cam
--
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
2010 Aug 13
2
Rails 3 / ActiveModel for Credit Card information?
When submitting billing information in the past I''ve always used
attr_accessor for credit card details as they should not be saved in
the database. In addition I always end up storing the card
expiration date so that the date form helper works correctly.
With Active Model it seems logical to create a CreditCard class to
hold this data instead.
**1st issue.**
It seems there still
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.
2011 Jan 04
1
Problem with "date_select" form helper
Hi,
I am using "date_select" form helper to select the date.
My code is as follows:-
<%=date_select("post", "written_on", :prompt => { :day => ''Select day'',
:month => ''Select month''}, :discard_year=>true)%>
It works.
But there is problem with the number of days for each month.
The days combobox has populated with
2011 Aug 18
9
RJS error rails 1.2.3 + firefox 4 and above
Hi,
In my application I used in admin module to expand and collpase
functionality using ajax(link_to_remote) method. It''s working fine in
mozilla 3 and below version..
But when I using in mozilla 4 expand functinality was working fine but
collapse are not work, it''s just ''wrinkls''.
My code is like below
<tr id="<%= content_element_id
2012 Oct 10
4
How do we get the End of Line date for the gems which we are using Ruby on Rails?
Hi All,
I want to know the EOL date for the below gems for ROR. Can anyone help me
how to find the EOL dates
- authlogic
- will paginate
- oauth-plugin 0.3.14
- statistics 0.1.1
- YUI
- cucumber 0.6.4
- cucumber-rails 0.3.0
- rspec 1.3.0
- rspec-rails 1.3.2
- webrat 0.7.0
- factory-girl 1.2.4
- database_cleaner 0.5.0
- SSL requirement
- calender_select
2011 Mar 02
2
date type in database becomes nil in rails
Hi, there. I wrote an application in Windows and tried to run it in
Ubuntu 10.04 64-bit. The app works fine in windows but I found a
strange problem when I tested it in Ubuntu. Two tables in database have
a column with date type and sqlite3 is able to display the data in the
column. However, as I run it from the browser or rails console, all
data in the column becomes nil. The ROR settings
2012 Sep 08
4
dash symbol
In the example below, what is the dash doing between the class
attribute and array:
(field_helpers -
[:label, :check_box, :radio_button, :fields_for, :hidden_field, :file_field]).each
do |selector|
--
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
2011 May 17
8
Changing Rails Default Date Parse Option
Does anyone know how to change the default option for the Date.parse
(which ActiveRecord is using on all date fields). I would like the
"comp" option to default to true so I don''t have to account for 2-
digit dates throughout my application.
http://corelib.rubyonrails.org/classes/Date.html#M001228
Thanks!
Tom
--
You received this message because you are subscribed to the
2007 Jan 16
2
Specifying the contents of a date selector
Another n00b question (can you tell I don''t normally write view code
yet???)...
I''m using the date_select form helper to give me three select popups,
(day, month, year). I want to specify that these exist and are set
to today''s date
I''ve tried this:
response.should_have ''form > p > select
2010 Aug 09
9
where can I get up to date instantrails ?
Hi, can someone please tell me where can I find up-to-date instantrails
(with rails 2.38, ruby 1.8.7) ... ?
Thanks for any help
Dani
--
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
2012 Jan 01
4
Chronic parsing date range in console but not in application in rails 3
Hey all,
Chronic will parse a date range in console:
Chronic.parse(1/1/2011 - 1/1/2012, :guess => false)
=> 2012-01-01 12:00:00 -0500..2012-01-01 12:00:01 -0500
However, when I use logger to check if it''s parsing in application, it
is not:
logger.info "The value of history date is #{history_date}" =>
The value of history date is 1/1/2011 - 1/1/2012
2012 Mar 05
8
Create a select with HABM
Hello, I have two tables with association HABM, projects and users, and
in projects I want to show all users that was associated to the project.
I have try with this:
<%= select( "user", "id", Project.all.collect { |p| [ p.name, p.id ] } )
%>
But only show all my projects, but Iz don''t know who show only the user
in a determinated project.
class Project <
2010 Dec 16
12
Capybara + radio buttons
How do I select a radio button when both id and name are identical?:
<input type="radio" name="BILFPB.bilPremieUppgifterFI.under24"
tabindex="13" value="J24" checked="checked" id="forare">Ja
<input type="radio" name="BILFPB.bilPremieUppgifterFI.under24"
tabindex="14" value="N24"
2010 Oct 14
1
Cucumber Selenium web step to verify value of input field
I have an input field with an id which has a value. The web_steps.rb method
does not find the value. Is this the right step to use to check an input
field? It works fine for a text_area but not an input.
Scenario steps (tried both ways):
Then the "travel_card_number_gate" field should contain "5"
Then the "#travel_card_number_gate" field should contain "5"
2013 Jan 03
8
How to Install Ruby and Rails
I want to install Ruby 1.8.7 and Rails 2.8.3,i am using ubuntu 11. Thank
you
--
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 group, send email to