Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require best_in_place.purr doesn't work for me #189

Closed
marcamillion opened this issue Oct 10, 2012 · 4 comments
Closed

require best_in_place.purr doesn't work for me #189

marcamillion opened this issue Oct 10, 2012 · 4 comments

Comments

@marcamillion
Copy link

I added this to my application.js:

//= require best_in_place.purr

Even though I did that I keep getting this error (after having restarted the server multiple times):

couldn't find file 'best_in_place.purr'
  (in myapp/app/assets/javascripts/application.js:19)

This is what my application.js looks like:

//= require jquery
//= require jquery.ui.all
//= require jquery_ujs
//= require twitter/bootstrap
//= require turbolinks
//= require best_in_place
//= require best_in_place.purr
//= require_tree .

Thoughts?

For what it's worth, I had the gem working before trying to add .purr. So I even removed it from my Gemfile, ran bundle then put it back and re-ran bundle - but still no dice.

@harley
Copy link

harley commented Oct 10, 2012

i think it's because you use the gem release version (via gem 'best_in_place') which doesnt include best_in_place.purr yet. try gem 'best_in_place', github: 'bernat/best_in_place' instead.

another way is to copy best_in_place.purr from the repo over to a best_in_place.custom in your app and customize it to your own needs. it will allow you to easily debug if things aren't showing up as expected as well

@marcamillion
Copy link
Author

Perfect....that worked. Once I changed the Gemfile to the Github repo, it now works perfectly. Thanks!!

I asked this question on Stack Overflow - http://stackoverflow.com/questions/12812050/couldnt-find-file-best-in-place-purr

If you want, you can add this solution and I will accept it.

@harley
Copy link

harley commented Oct 10, 2012

glad that helped! thanks for offer but i'm not on SO :)

@marcamillion
Copy link
Author

Np!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants