My be you could write like this inside the form, but before that check in
your vendor/plugin directory is calendar_date_select is actually installed
or not

<% fields_for :model_name do |mn| %>
     <%= mn.calendar_date_select :scheduled, :valid_date_check =>
"date.stripTime() > (new Date()).stripTime()", :year_range => [0.years.ago,
10.years.from_now]%>
<% end %>


On Tue, Aug 10, 2010 at 4:35 PM, Ak4r1 <[email protected]> wrote:

> Hello,
>
> Im having trouble with the plugin calender_date_select;
>
> if install it using a url external source, done-> gem install
> calendar_date_select and config.gem in my environment.rb
>
> but i keep having errors; currently errors im getting;
>
> ---------------------------------------------
> ArgumentError in Faultreports#new
> Showing app/views/faultreports/new.html.erb where line #187 raised:
>
> wrong number of arguments (5 for 4)
>
> Extracted source (around line #187):
>
> 184:   <p>
> 185:     <%= f.label :FaultOccurredDate %><br />
> 186:
> 187:    <%= f.calendar_date_select :FaultOccurredDate %>
> 188:
> 189:
> 190:   </p>
>
> ---------------------------------------------
>
> i've look around the mailing list and found some with the similar
> problem but could find the exact answer or solution im looking for
> wonder if anyone can help?
>
> Thanks in Advance
>
> --
> SD Ruby mailing list
> [email protected]
> http://groups.google.com/group/sdruby




-- 
Anurag Pattnaik
Mobile: +91-94371-78396

-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby

Reply via email to