Hello,
Recently I am working on calendar on rails and found the Railendar
http://rubyforge.org/projects/railendar/
When I was trying to run it, the display calendar works, but the
admin/new function didn''t work, I got the error like
"
ArgumentError in Admin#new
Showing app/views/admin/_form.rhtml where line #11 raised:
wrong number of arguments (0 for 1)
Extracted source (around line #11):
8: <%= text_area ''event'', ''description''
%></p>
9:
10: <p><label for="event_startdate">Date</label>
11: <%= date_select ''event'', ''startdate''
%><br/>
12: <label for="event_starttime">Start</label>
13: <%= my_time_select ''event'',
''starttime'' %><br/>
14: <label for="event_endtime">End</label>
Trace of template inclusion: /app/views/admin/new.rhtml
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace
app/helpers/my_date_helper.rb:233:in `value''
app/helpers/my_date_helper.rb:233:in `date_or_time_select''
app/helpers/my_date_helper.rb:217:in `to_date_select_tag''
#{RAILS_ROOT}/app/views/admin/_form.rhtml:11:in
`_run_rhtml_47app47views47admin47_form46rhtml''
#{RAILS_ROOT}/app/views/admin/new.rhtml:5:in
`_run_rhtml_47app47views47admin47new46rhtml''
"
Basically I just follow the instruction and ran the original code, I
searched a lot on internet and reinstalled several times and still got
the same error. It seems somebody talked about the problem of
date_time_select when upgrading to the newest rails. Much appreciate if
anybody can give me some ideas on the problem. Thanks a lot!
Btw, my version is Ruby 1.8.2, rails 1.2.3, mysql 5.0, OSX 10.4.9,
Thanks!
XJ
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---