views:

9

answers:

1

Hi All,

I have installed http://code.google.com/p/calendardateselect/ Datepicker using gem install calendar_date_select

Installation was success. but beeing a newbey, i dont know how to use it. i gave in my view file, <%= calendar_date_select_tag "e_date" %>

But it throws the error undefined method `calendar_date_select_tag' for #<#:0x2cc8998>

Any help is appreciated

A: 

In environment.rb, add

Rails::Initializer.run do |config|
  ...

  config.gem "calendar_date_select"

  ...
end
Hoa