Ruby on rails Twitter引导和RoR

Ruby on rails Twitter引导和RoR,ruby-on-rails,Ruby On Rails,我已经在我的gem文件中包含了我的引导gem,css代码似乎运行良好。但现在我正试图实现一个下拉菜单,使用$('.dropdownttoggle')。dropdown() 但有人告诉我,我需要从bootstrap下载另一个*.js文件。它们不都包括在宝石里吗?有没有教程可以告诉我如何使用RoR中的下拉菜单 编辑: // This is a manifest file that'll be compiled into application.js, which will include all t

我已经在我的gem文件中包含了我的引导gem,css代码似乎运行良好。但现在我正试图实现一个下拉菜单,使用
$('.dropdownttoggle')。dropdown()
但有人告诉我,我需要从bootstrap下载另一个*.js文件。它们不都包括在宝石里吗?有没有教程可以告诉我如何使用RoR中的下拉菜单

编辑:

// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
// GO AFTER THE REQUIRES BELOW.
//
//= require jquery
//= require jquery_ujs
//= require twitter/bootstrap
//= require_tree .

查看twitter引导程序rails,它有可以为您进行设置的生成器。github页面上的自述文件包含所有说明,还有一个指向railscast的链接,其中有两个视频解释如何操作


您具体使用了哪个引导程序?另外,你能发布app/assets/javascripts/application.js吗您需要在该文件中添加require语句。我对其进行了编辑,以便您可以查看