Hi!

Take a look at:

http://guides.rubyonrails.org/form_helpers.html#using-date-and-time-form-helpers


It seems that you've getting some problems with the "from" date_select,
because you're getting:

{"{:start_year=>1980,
:end_year=>2013}(1i)
"{:start_year=>1980,
:end_year=>2013}(2i)
"{:start_year=>1980,
:end_year=>2013}(3i)


but instead, you should get from(1i), from(2i) and from(3i).


It seems too that you have a extra comma here:

date_select :crm_member_transactions, :to,
,:start_year=>1980,:end_year=>1.year.from_now.year%>

In the end of the first line and the beginning of the second there are a
comma. Maybe it's a syntax error.


Later, you should use

params[:crm_member_transactions][:from]
and
params[:crm_member_transactions][:to]

to build the dates.


Sorry for my English mistakes. I'm not a native speaker.

Best Regards,
Everaldo


On Mon, Feb 6, 2012 at 12:50 AM, Daisy Di wrote:

??any one can help me ?thanks

--
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@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 3 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedFeb 3, '12 at 1:32a
activeFeb 6, '12 at 3:44a
posts3
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Daisy Di: 2 posts Everaldo Gomes: 1 post

People

Translate

site design / logo © 2021 Grokbase