Git Product home page Git Product logo

js-routes's People

Contributors

bjedrocha avatar bryanashley avatar cfoy avatar mtrpcic avatar pallinder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

js-routes's Issues

Rails 3.1 Support

I tweaked the script to work with rails 3.1 by making the following changes:

changed instances of RAILS_ROOT to Rails.root
and save_path now equals "#{Rails.root}/app/assets/javascripts/#{filename}" for the new assets feature

undefined method in split function of rails 3

My version of rails is 3.2.13

When i run rake js:routes, i get the following error:

rake aborted!
undefined method `split' for #<Journey::Path::Pattern:0x000000077b8a20>
/home/hsps/crm-sages/lib/tasks/js.rake:63:in `block in generate_routes_for_rails_3'
/home/hsps/crm-sages/lib/tasks/js.rake:61:in `generate_routes_for_rails_3'
/home/hsps/crm-sages/lib/tasks/js.rake:8:in `block (2 levels) in <top (required)>'
Tasks: TOP => js:routes
(See full trace by running task with --trace)

I fixed this issue by changing

route.path.split("(")[0]

to

route.path.spec.to_s.split("(")[0]}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.