bluerail / twitter-bootstrap-rails-confirm

Confirm dialogs using Twitter Bootstrap
https://bluerail.nl
MIT License
85 stars 34 forks source link

$.rails is undefined #25

Closed matthewturner closed 9 years ago

matthewturner commented 9 years ago

Hi,

I'm getting a javascript error on the following line:

https://github.com/bluerail/twitter-bootstrap-rails-confirm/blob/master/vendor/assets/javascripts/twitter/bootstrap/rails/confirm.coffee#L88

The javascript console saying $.rails is undefined despite it being used several lines above on line 83.

It's only a small Rails 4 project with just the standard js libraries referenced.

Do you have any ideas what might be causing this?

Thanks.

rvanlieshout commented 9 years ago

Hmm.. cannot say that without seeing the full code and such.