开发者

rails MapLayers javascript

im just starting to use RoR and i seem to miss an important point. i tried to recreate the example applicat开发者_如何学编程ion on the mapLayers git repo https://github.com/pka/map_layers/wiki

all i get is the javascript code generated by rails as text. when i copy that code into my index.html.erb i get the expected result.

what am i forgeting

thanks in advance jan


Are you using Rails 3? Or Rails > 2.3.5? If so, this library is conflicting with Rails XSS protection (http://yehudakatz.com/2010/02/01/safebuffers-and-rails-3-0/). You probably want to fiddle with the 'raw' helper to make your javascript render as javascript.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜