0
votes
1answer
148 views

How do I use my Jquery plugin in the Rails asset pipeline?

My company introduced a way to use social share buttons without providing tracking data to the social sites on page load: jquery.socialshareprivacy. How can I use it in a Rails 3.2 asset pipeline?
3
votes
2answers
178 views

Set of CoffeeScript/JavaScript classes and methods available to rest of Rails app

I'm using Rails 3.2.9. When I add CoffeeScript code to a .js.coffee file in the /app/assets/javascripts directory, I get the resulting JavaScript in all of my webpages. The problem is all the ...
3
votes
1answer
1k views

Rails 3 prototype render :update response has text/html content-type

I'm trying to get some RJS code written with prototype and Rails 2.3.11 to work in Rails 3.2.1 I have the prototype-rails gem, so render :update do |page| works, I'm using a form with :remote => ...
1
vote
1answer
6k views

Styling “popovers” in Twitter Bootstrap's “bootstrap-popover.js” in Rails 3.2

Using Rails 3.2 and Twitter Bootstrap “bootstrap-popover.js" and "bootstrap-tooltip.js" here This is what I'd like to happen : for when I hover over: <li> <a href="#" ...
1
vote
3answers
1k views

Print valid, non-escaped JSON in a view with Rails

I've tried everything. Every combination of the helpers raw, html_safe to_json including some attempts with ::JSON.encode and CGI.unescape. The issue is that regardless of what I do, I can't print ...
0
votes
0answers
324 views

Drop-down and maybe all jquery plugin not working in twitter-bootstrap-rails

My twitter bootstrap dropdown plugin is not working (both in production and development, yes I tried precompiling assets). When I click on dropdown button it pop's the menu (sign in form in my case). ...
0
votes
1answer
333 views

Rails Asset Pipeline JS Compression Inserting “Illegal Characters”

I just asked a question about an "Illegal Character" in my javascript. The answer there led me to find that there is a problem with compressing javascript in the Rails asset pipeline inserting ...