qwwqwwq / rails_d3_seed

Seed for d3 visualizations inside a Rails app.
14 stars 14 forks source link

Just wanted to say THANKS #1

Open chewmanfoo opened 9 years ago

chewmanfoo commented 9 years ago

This simple app taught me how to include third party javascripts into rails apps in a very clear clean way - I did not understand it before, and you helped me immensely! YOU'RE MY HERO!!!

qwwqwwq commented 9 years ago

Woohoo! Glad you found it helpful! Thanks for letting me know :)

mrbartc commented 8 years ago

I also would like to join with some THANKS and GREAT HELP. Found it very useful to start my D3js endeavours. I have one question though . If I clone it and run, it works great, but when I try to create a new rails app and follow the steps it doesn't load the graph.js file with the actual d3 graph code. If I paste the code into console it works. What do I need to do to include this js in my app? I'm obviously missing something. Any help with this would be greatly appreciated. I posted a question on stack overflow earlier on today about this.

qwwqwwq commented 8 years ago

Thanks I'm stoked that you found it helpful. If you push your project to github I'd be happy to take a look, sounds like the d3 gem you mention is probably not playing well with what this project does which was to just include d3 as a static asset..

mrbartc commented 8 years ago

Many Thanks for looking into this. Really appreciated. I pushed what I'm trying to get to work here. Tried all sorts of things but can't figure out what I'm doing wrong. The versions in Gemfile are a bit different but not too far from your example.

In your example I can see in the Resources under index/graphXxxxxx... file with the d3 graph code and everything works OK, in mine however the same file has an empty function, as if it wasn't loaded

(function() {

}).call(this); 

d3 library from the d3-rails loads ok, from what I can tell.

Thanks again for looking at this.