如何将jquery-ui添加到Ruby on Rails 3.1应用程序? [英] How do I add jquery-ui to a Ruby on Rails 3.1 app?

查看:88
本文介绍了如何将jquery-ui添加到Ruby on Rails 3.1应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将//=require jquery-ui添加到我的application.js文件中,这似乎为我提供了javascript,但似乎无法包含样式表.如果我理解正确,则应该将它们放入vendor/stylesheets,但是如何将它们包括在内?

解决方案

denysonique对此有答案,正如时代狼在评论中指出的.

Rails 3.1和jquery-ui资产

I have added //=require jquery-ui to my application.js file and that seems to give me the javascript but I can't seem to get the stylesheets to be included. If I understand it right they should go in vendor/stylesheets but how do I get them to be included?

解决方案

denysonique has the answer in this question as pointed out by epochwolf in the comments.

Rails 3.1 and jquery-ui assets

这篇关于如何将jquery-ui添加到Ruby on Rails 3.1应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆