JavascriptMVC and Rails framework

I recently started working on an application that requires intensive client-side scripting and is considering integrating Rails with JavascriptMVC. found that people at JupiterJS do the same thing, which is great, but

I searched on google, on the javascriptMVC forum, and I still could not find a specific answer for this - where can I put all the javascriptMVC folders and files in the Rails file structure?

I was originally going to put all the new javascriptMVC files in / public / javascripts / - but I was a little worried about the security issues that he could create - all test files, documents and scripts would be accessible to the whole world. PLUS, instructions in javascriptMVC say:

"PRO TIP: Expand these files as high as possible in the application folder structure (i.e. do not put them in the javascriptmvc folder in your public directory).

So now I'm not sure. Any ideas on what a good rails + javascriptMVC folder structure would look like, and I need to add new paths to the Rails environment so that it can work outside of the public /?

+3
source share
1 answer

For JMVC questions, please ask questions in our forum. You're in luck, I check stackoverflow.

In fact, there is no security issue if you are using a standard rails server. However, if you want to be safe, on your production machine you only need to pull out steal / steal.js and your production.js files and the production.css file.

+1
source

All Articles