Hey jmvc-team!
I'm not quiet sure if it's a bug or a problem in my understanding of structuring building blocks in Javascript MVC 3.0.
I'm developing a rails project and want to integrate JMVC for my javascript.
Let's assume I have a Home-Controller with a simple view in my Rails project. (Basically I want to map rails controllers to jmvc controllers, good or bad idea?).
Furthermore I have a <ul>-List in the view with the id #list.
In JMVC I created a controller App.Home and a second controller App.Home.Controllers.List especiallay for #list.
Learning from srchr and the docs my file structure looks as follows:
- - public
- - javascript
- - jquery/
- - steal/
- - app/
- - home/
- - controllers/
- - list_controller.js
- - views/
- - list/
- - list.ejs
- - home.js
- - app.js
When I open the homepage I get the following error/warning:
If I rename
App.Home.Controllers.List to to
Home.Controllers.List it works except that the default view path is
/public/javascript/home/views. And I get the following warning from steal:
- steal.js WARNING: Are you sure Home.Controllers.List belongs in app/home/controllers/list_controller.js.
Any thoughts on that? Thank you guys very much!
Julian