开发者

What are the jQuery components included in Ruby on Rails 3.1? How do you include the nonincluded?

开发者 https://www.devze.com 2023-04-05 19:24 出处:网络
I\'m assuming Ruby on Rails 3.1 includes just the UI Core components (Core, Widget, Mouse, Position).

I'm assuming Ruby on Rails 3.1 includes just the UI Core components (Core, Widget, Mouse, Position).

Question Part 1

Is there somewhere I can confirm this? I am trying to utilize some of jQu开发者_如何转开发ery's other awesome widgets. The ProgressBar to be exact.

Mainly, I am looking at the list of available widgets located here: http://jqueryui.com/download

Question Part 2

If I wanted to add say the jquery.ui.progressbar.js file to my RoR project, do I just add it to the app/assets/javascripts folder and add <%= javascript_include_tag 'jquery.ui.progressbar'%> to my application layout file?

Thanks!


You'll find all your answers and much more here.


First page of the railscast, you see:

//= require jquery
//= require jquery_ujs
//= require jquery-ui
//= require_tree ./public

Which means default are jquery + jquery-ui.

If you want to add more, add them to the manifest or in your view.

0

精彩评论

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

关注公众号