Closed shilpi230 closed 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
It's one year old question. Now I don't even remember what was the error :O
Its not working you have given wrong routes. And if i changes the routes its displaying me only json 1,2,3,4,5.