This project is archived and is in readonly mode.
ActionView::Helpers::DateHelper problem in rails 2.2
-
Andy Atkinson
I have Rails 2.2.2 and 2.3.2 installed as gems. I attached a simple app that has a Post model and written_on date field. I was unable to reproduce your error by adding the :discard_day => true option to the DateHelper method. I tried the create and edit forms, and tried with Rails 2.3.2 and 2.2.2.
-
judearasu (at gmail)
Hi i have checked in your application helper is working fine, but its not displaying the prompt message
Ex
<%= f.date_select :created_at,:discard_day => true,:prompt=>{:month=>'Day'} %> -
Andy Atkinson
Hello. Is the :prompt option a separate issue from the original bug you filed? If so I think it would probably be best to close this one and post a more specific bug.
-
judearasu (at gmail)
Yes :prompt option is a separate issue.
-
David Trasbo
- Assigned user set to Ryan Bigg
I wasn't able to duplicate this issue either.
➜ code rails -v Rails 2.3.5 ➜ code rails date_select ... ➜ code cd date_select ➜ date_select script/generate model post written_on:date ... ➜ date_select rake db:migrate ... ➜ date_select script/generate controller posts new ... ➜ date_select script/serverclass PostsController < ApplicationController def new @post = Post.new end end<% form_for @post do |post| %> <%= post.date_select :written_on, :discard_day => true %> <% end %>or:
<%= date_select("post", "written_on", :discard_day => true) %>I think this ticket can be marked as invalid, or resolved if it turns out the issue existed in previous versions.
