Sproutcore & rails: where does the sproutcore application work in the rails directory structure?

I have working Rails 3 to work with plain old HTML CRUD, and I want to create a sproutcore client for it. I (think) I understand Rails and Sproutcore, but I have a confusing stupid question for newbies:

Where can I put a sproutcore application in a rails project structure?

In particular, given that I have:

myapp/
    app/
    ...
    public/
    ...

And I need to say:

sc-init SOMETHING

What will SOMETHING be? (myapp? public?) Where does the sproutcore app html come from? What are the best methods for serving this (routes?) What does the sc server really do that I cannot do with WebBrick / Mongrel etc.?

Many thanks!

+3
source share
2 answers

SproutCore, , Rails ( , public/, HTML Javascript ).

sc-server , sc-build , - . , sc-build, ; sc-server ( ).

0
+3

Source: https://habr.com/ru/post/1770370/


All Articles