qwwqwwq / rails_d3_seed

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

Its not working you have given wrong routes. #3

Closed shilpi230 closed 7 years ago

shilpi230 commented 9 years ago

Its not working you have given wrong routes. And if i changes the routes its displaying me only json 1,2,3,4,5.

kindereco commented 7 years ago

i resolve half of problem

rails new testd3 after that rails generate controller graph index after that do the changes http://www.overfitted.com/blog/?p=302 important put d3.js inside the vendor/assets/javascript

rails server

if you get error ExecJS::ProgramError in ... app/views/layouts/application.html.erb where line #7 raised

<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>

in app/views/layouts/application.html.erb change application to default

<%= stylesheet_link_tag 'default', media: 'all', 'data-turbolinks-track': 'reload' %> <%= javascript_include_tag 'default', 'data-turbolinks-track': 'reload' %> do again rails server in this will give 1,2,3,4,5 http://localhost:3000/graph/data.json

but in this will be blank but no error now i dont know why dont show the graph http://localhost:3000/graph/index.html

shilpi230 commented 7 years ago

It's one year old question. Now I don't even remember what was the error :O