Edward
Edward

Reputation: 141

Ruby on rails require jquery

Does Jquery have to be manually included in rails? Or is it a default? I see in the asset pipeline manifest:

require jquery
require jquery-ujs

Upvotes: 0

Views: 175

Answers (1)

tadman
tadman

Reputation: 211540

It doesn't have to be included, but it will be included unless you remove it. Most applications will benefit from it being present, but if you don't use JavaScript in any of your views, you could always leave it out.

Upvotes: 1

Related Questions