Phil
On Thu, Mar 10, 2011 at 5:22 AM, Chandu80 <chandu.she...@gmail.com> wrote: > Hello All, > I have a link_to function for a link as follows > > <%=link_to "Reply" ,{},:href=>"#",:class => "replyMessage > noBackgroundImage" ,:title =>"Click here to reply",:onclick => > "popup('popUpDiv_reply');showName('<%= h message.chid > %>','channeltopost');"%> > > You don't need to (and probably can't) nest erb tags <% %>... in your onclick, you could just do: :onclick => "popup('popUpDiv_reply');showName('#{h message.chid}','channeltopost');" > When I try to run the file with the onclick as defined above,I get the > following error > syntax error, unexpected tRPAREN > > Is there a way to fix it? > > Thanks in Advance > > > Regards > Chandrika > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.