# Link\_to method doesn't work with shared css/javascript class

**URL:** <https://www.ruby-forum.com/t/link-to-method-doesnt-work-with-shared-css-javascript-class/135084>\
**Category:** Rails\
**Created:** [April 17, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/link-to-method-doesnt-work-with-shared-css-javascript-class/135084 "2008-04-17T17:48:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![claus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/82dd89/32.png) [@claus](https://www.ruby-forum.com/u/claus)\
**Post date:** [April 17, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/link-to-method-doesnt-work-with-shared-css-javascript-class/135084/1 "2008-04-17T17:48:29Z")

</div>

ddaccordion.init({ headerclass: "expandable", ..... \</script

- \<%= link\_to "institut", {:controller =\> "news"} %\>
...at first I want to say that I'm pretty new in ruby ... may u are able to help me: i have an accordion navigation and the headers, which should expand on click, should link to my different sites.everything works fine, however, when the link\_to method is nested in a tag where my shared css class, which javascript uses do locate my expandable headers, appears, the link doesn't work any longer.
