Rails 3.1 and jquery-ui assets

后端 未结 8 1826
小鲜肉
小鲜肉 2020-12-02 05:10

This was asked in another question, but none of the solutions appear to work for me in 3.1rc1.

I\'m trying to use the new assets stuff in rails 3.1 - I have the file

8条回答
  •  不思量自难忘°
    2020-12-02 05:28

    Have you tried using the rails-asset-jqueryui gem? It vendors jquery-ui and the standard themes (currently v1.8.16) and makes them available via the asset pipeline. The following example calls for the Smoothness theme.

    Gemfile:

    ....
    gem 'rails-asset-jqueryui'
    ...
    

    app/assets/javascripts/application.js:

    ...
    //= require jqueryui
    ...
    

    app/assets/stylesheets/application.css:

    ...
    = require smoothness
    ...
    

提交回复
热议问题