# Adding link to Calendar Helper

**URL:** <https://www.ruby-forum.com/t/adding-link-to-calendar-helper/156973>\
**Category:** Rails\
**Created:** [January 5, 2009, 11:23pm UTC](https://www.ruby-forum.com/t/adding-link-to-calendar-helper/156973 "2009-01-05T23:23:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![david](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@david](https://www.ruby-forum.com/u/david)\
**Post date:** [January 5, 2009, 11:23pm UTC](https://www.ruby-forum.com/t/adding-link-to-calendar-helper/156973/1 "2009-01-05T23:23:41Z")

</div>

Im wondering if there is a way to add a link with the html or  
  tag in the calendar helper plugin:  
 [http://wiki.rubyonrails.org/rails/pages/Calendar+Helper+Plugin](http://wiki.rubyonrails.org/rails/pages/Calendar+Helper+Plugin).  
I am able to add links using the link\_to helper, but I would like to  
be able to add a link using one of the html tags so that I can add a  
css class to it.

I am trying to add a popup link to each day of the calendar using the  
DOM popup kit which constructs the popups using the following format:

Testing

Does anyone know where I can put this code into the calendar helper?  
It seems that the cell\_text container rejects this code, so I am  
thinking I am going to have to add it directly into the  
calendar\_helper.rb file itself. Thanks for any help, Im pretty much  
stuck right now.

---

<div class="post-metadata">

**Author:** ![david](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@david](https://www.ruby-forum.com/u/david)\
**Post date:** [January 6, 2009, 10:49pm UTC](https://www.ruby-forum.com/t/adding-link-to-calendar-helper/156973/2 "2009-01-06T22:49:50Z")

</div>

This is really random, but I figured out the problem. Rails chokes on  
double quotes, so you have precede them with a slash:  
(this code is specific to integrating the DOM popup kit with the  
calendar helper plugin)

cell\_text \<\< "\<a id=“test\_popup\_link\_#{@day}” class="popup\_link  
“\>Click here for popup”
