开发者

How do I change what is rendered in a javascript called from a view?

开发者 https://www.devze.com 2023-03-14 23:41 出处:网络
I am calling the twitter widget from a file twitter_widget.js using this code: =javascript_include_tag \"twitter_widget\"

I am calling the twitter widget from a file twitter_widget.js using this code:

=javascript_include_tag "twitter_widget"

In a view of a controller written in haml.

Eve开发者_Go百科rything is functioning but all the URLs are rendering with the contents of the href in parenthesis as can be seen in this screenshot:

http://i.stack.imgur.com/ELDrh.png

I've googled around, and I'm new to rails, so any help is greatly appreciated.


The problem was definitely bluprint.css. Once I disabled blueprint view rendered as expected.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号