Slashek / bootstrap-select-rails

bootstrap-select-rails
MIT License
62 stars 54 forks source link

Can't install #10

Closed fbcbl closed 10 years ago

fbcbl commented 10 years ago

Hi,

I followed your instructions and installed the gem. I also added the lines to the application.js but when I try to run my application it says that "bootstrap-select" can't be found.

Do you have any idea of what might be ?

benjaminb10 commented 10 years ago

Same issue here.

dadave92 commented 10 years ago

Here, too.

dadave92 commented 10 years ago

I fixed it.

  1. Download the css file and js file.
  2. Put the css file and js file into your Project: \app\vendor\assets\stylesheets and \app\vendor\assets\javascript
  3. Restart your Server
  4. Add this in your View:
<select class="selectpicker">
  <option>Mustard</option>
  <option>Ketchup</option>
  <option>Barbecue</option>
</select>

<script>
  $(".selectpicker").selectpicker();
</script>
Slashek commented 10 years ago

@dadave92 I guess the reason is the "twitter" prefix, take a look at https://github.com/yabawock/bootstrap-sass-rails.

Slashek commented 10 years ago

updated the readme, please confirm that it works now

dadave92 commented 10 years ago

@Slashek works for me. :boom: