From: Alex Young Date: 2007-06-03T05:08:42+09:00 Subject: Re: mixing onlick functions in link_to_function Mike Dershowitz wrote: > Hi: > > This is giving an error: > > <%= link_to_function "expand", > "Element.toggle('in#{msg.id}'); > Element.show('col#{msg.id}'); Element.hide('ex#{msg.id}'); > document.getElementById('#{msg.id}').style.backgroundColor = 'white'; > {new Ajax.Request('/messages/msg_read/#{msg.id}, {asynchronous:true, --------------------^ This quote mark isn't closed. -- Alex