1

I am quite new to ruby on rails development and I have question about customizing jquery-ui in rails application.

I know that now to install jquery-ui one need to use special gem "jquery-ui-rails" and then using

/*
*= require jquery.ui.all
*/

in code

But how am I going to customize that jquery-ui? For example, I need to make changes in jquery-ui.css and jquery-ui.js. What is the correct way to do it?

  1. It is considered bad style to modify jquery-ui.css and jquery-ui.js
  2. In case you need to modify jquery-ui.css and jquery-ui.js, you DO NOT need to include "jquery-ui-rails" gem and need to include them manually
  3. Some special way to customize them?

1 Answer 1

1

I am unsure on how to properly utilise jQuery-UI within a rails environment so unfortunately I can't help with that, but with your second issue the easiest way to customise jQuery-UI's CSS is to use the theme-roller that they provide.

I would imagine that the gem repository is the standard version and you would have to replace the CSS files with those created by the theme-roller within the installation directory but I am not sure on this.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.