Displaying 3 results from an estimated 3 matches for "calendar_controller".
2006 Jul 15
6
calendar_helper
Hi, anyone ever tried the calendar plugin?
i can''t get it to work:
i did:
ruby script/plugin install
http://topfunky.net/svn/plugins/calendar_helper
ruby script/generate calendar_styles
and then generated a controller calendar_controller with a method
def monthly
end
in monthly.rhtml i put:
<%=calendar(:year => 2005, :month => 6)%>
if i try to run i get:
undefined method `calendar'' for #<#<Class:0x3a7fdb0>:0x3a7fd80>
am i forgetting something?
thanks
--
Posted via http://www.ruby-forum.com/.
2006 Jul 27
9
CalendarHelper
Has anyone had any luck using the CalendarHelper plugin at
http://wiki.rubyonrails.com/rails/pages/CalendarHelper recently?
I''m scratching my head over the following error when I look at any page
in my application:
NameError in CalendarController#index
undefined local variable or method `date_format'' for
#<CalendarController:0x24ccd4c>
RAILS_ROOT:
2006 Jul 20
0
RJS and calendar_helper troubles .... tab characters covering web page
...and the calendar refreshes
to that selected month we get a ton of ''\t'' displayed all over the page
inside what looks like to be a javascript debug print statement ( try {}
catch{} block ).
We tried everything and cannot seem to resolve. Anyone have any ideas? below
are snippets:
calendar_controller.rb
def modify_month_view
set_calendar_dropdowns(request.raw_post, ''2006'')
modify_month_view.rjs
page.replace_html ''embed_calendar'', :partial => ''shared/calendar'',
:year => 2006, :month => 5
shared/_calendar.rhtml partial...