RJS and calendar_helper troubles .... tab characters coverin

We have implemented calendar_helper.rb to generate an ajaxified calendar
using rjs templates. Everything worked fine until we added a drop down
to
select the current month. Now when select a month 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



<%=
calendar({:year => 2006, :month => 11, :table_class =>
“my_calendar_helper”}) do |d|
cell_text = “#{d.mday}

cell_attrs = {:class => ‘my_day’}
@events.each do |e|
if e.tour_start_date == d
cell_text << e.label << “

cell_attrs[:class] = ‘specialDay’
end
end
[cell_text, cell_attrs]
end
%>

thanks for any help!
Ryan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs