Code Monkey home page Code Monkey logo

Comments (1)

jwhitley avatar jwhitley commented on August 10, 2024

[FYI: your script tag formatting had some problems -- it doesn't appear in the text above -J]

I don't see anything obviously wrong with that one line. I've got this for my routes (names changed to protect the guilty 😄) for a small application built using requirejs-rails, backbone, etc. on Rails 3.2:

FooApp::Application.routes.draw do
  # This is for the devise authentication framework
  devise_for :users

  scope '/api' do
    match 'stuff' => 'stuff#index'
  end

  root :to => 'landing#index'

  match '*webapp' => 'webapp#index'
end

In this case, the final route that starts match '*webapp' is the catch-all used to direct all other routes to the client-side Backbone app.

That Sprockets ticket is long-closed, so I don't imagine that your a problem. You can always run rake routes to get a full dump of your app's routes to quickly see whether there are any ordering problems.

As this doesn't appear to be a requirejs-rails bug per se, I'm going to close this issue, but feel free to carry on conversation in this thread.

from requirejs-rails.

Related Issues (20)

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.