Re: CalendarDateSelect in Rails 2.3.5

99 views
Skip to first unread message

Shih-gian Lee

unread,
Mar 19, 2010, 9:29:55 AM3/19/10
to calendar_d...@googlegroups.com
Hi Cheri!

The correct syntax will be <%= f.calendar_date_select :bday, :year_range => 0.years.ago..1.years.from_now %>, assuming that you have a @person object defined somewhere.

If you don't have an object defined, then you should use calendar_date_select_tag instead. Please see sample demo here - http://electronicholas.com/calendar, under the popup calendar tab.

Can please please post this type of question on google discussion group (http://groups.google.com/group/calendar_date_select) so that others can benefit from your question and you can get faster respond from others as well?

I hope that helps!

- Lee


I'm having problems with using CalendarDateSelect in a form_for loop
with Rails 2.3.5
Is this a known issue?

Here's what I get:

<%= f.calendar_date_select :bday, nil, :year_range => 0.years.ago..
1.years.from_now %> gives me the error:

wrong number of arguments (3 for 2)

<%= f.calendar_date_select :bday %> gives me the error:

wrong number of arguments (5 for 4)

I'm running rails 2.3.5 and ruby enterprise 1.8.7-2010.01

Thanks!

Cheri

liquid_rails

unread,
Mar 29, 2010, 6:21:22 PM3/29/10
to calendar_date_select
Hi Lee,

Thanks for the info. I downloaded the 1.15 tar.gz file of
calendar_date_select -
timcharper-calendar_date_select-88b7caf.tar.gz, uncompressed it and
renamed it calendar_date_select, and put the directory in the vendor/
plugins directory. Now when
I start up passenger, I get this error:

"CalendarDateSelect is not a class"

The backtrace is:

1 /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb 31 in `gem_original_require'

2 /opt/ruby-
enterprise-1.8.7-2010.01/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb 31 in `require'

3 /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/
activesupport-2.3.5/lib/active_support/dependencies.rb 156 in
`require'

Do you have any idea what might be going on?

Thanks,

Cheri


Shih-gian Lee

unread,
Mar 29, 2010, 6:50:19 PM3/29/10
to calendar_d...@googlegroups.com
Hi Cheri!

We have a new release with new enhancement and multiple bug fixes. Can you download the latest zip version - 1.16.1 here? - http://github.com/timcharper/calendar_date_select/downloads

I don't have phusion passenger running locally. Did you have it running locally before deploying to passenger?

- Lee



--
You received this message because you are subscribed to the Google Groups "calendar_date_select" group.
To post to this group, send email to calendar_d...@googlegroups.com.
To unsubscribe from this group, send email to calendar_date_se...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/calendar_date_select?hl=en.


liquid_rails

unread,
Mar 31, 2010, 12:19:00 PM3/31/10
to calendar_date_select
Hi Lee,

I figured out what the problem was. I still had the OLD version that
doesn't work with Rails 2.5 in my plugins directory and that was what
was hosing up everything!!!!!! Live and learn....

Thanks again, great plugin!!! I appreciate all your work in keeping
it current!

Cheri

On Mar 29, 3:50 pm, Shih-gian Lee <shihg...@gmail.com> wrote:
> Hi Cheri!
>
> We have a new release with new enhancement and multiple bug fixes. Can you

> download the latest zip version - 1.16.1 here? -http://github.com/timcharper/calendar_date_select/downloads


>
> I don't have phusion passenger running locally. Did you have it running
> locally before deploying to passenger?
>
> - Lee
>

> > calendar_date_se...@googlegroups.com<calendar_date_select%2Bun­subs...@googlegroups.com>


> > .
> > For more options, visit this group at

> >http://groups.google.com/group/calendar_date_select?hl=en.- Hide quoted text -
>
> - Show quoted text -

Reply all
Reply to author
Forward
0 new messages