# Using variable in Yahoo Calendar url link

**URL:** <https://www.ruby-forum.com/t/using-variable-in-yahoo-calendar-url-link/169876>\
**Category:** Rails\
**Created:** [June 9, 2009, 9:43pm UTC](https://www.ruby-forum.com/t/using-variable-in-yahoo-calendar-url-link/169876 "2009-06-09T21:43:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![codecarpenter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@codecarpenter](https://www.ruby-forum.com/u/codecarpenter)\
**Post date:** [June 9, 2009, 9:43pm UTC](https://www.ruby-forum.com/t/using-variable-in-yahoo-calendar-url-link/169876/1 "2009-06-09T21:43:45Z")

</div>

Anybody has experience using the following link to add an event to the  
Yahoo Calendar?

[http://calendar.yahoo.com/?v=60&ST=20080105T1400&ET=20080105T1500&title=Event%20Name&desc=note%20field&RPAT=1mh](http://calendar.yahoo.com/?v=60&ST=20080105T1400&ET=20080105T1500&title=Event%20Name&desc=note%20field&RPAT=1mh)

This works. But when I try to replace value of a field such as title  
with \<%= title %\> it either log me into [my.yahoo.com](http://my.yahoo.com) or complains of url  
format issue. I believe this is a Yahoo issue but I have not gotten a  
response from the Yahoo board yet. Just wonder if anybody on this forum  
knows the solution. Thanks!

---

<div class="post-metadata">

**Author:** ![codecarpenter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@codecarpenter](https://www.ruby-forum.com/u/codecarpenter)\
**Post date:** [June 9, 2009, 10:46pm UTC](https://www.ruby-forum.com/t/using-variable-in-yahoo-calendar-url-link/169876/2 "2009-06-09T22:46:31Z")

</div>

2009/6/9 kevin lee [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> knows the solution. Â Thanks!  
> Have a look at the source of the page in your browser and see what url  
> you are generating (View, Page Source in FF for example). The browser  
> does not know that you are generating the url using \<%= … %\> so if  
> you end up with the same text it must work. If it complaining of a url  
> format issue then you have probably got it wrong.

Colin
