I have a working Rails 3 app service plain old HTML CRUD and I want to build a sproutcore client for the same. I (think) I understand Rails and Sproutcore, but I have an embarrassingly silly newbie question:
Where do I put the sproutcore app within the rails project structure?
Specifically, given that I have:
myapp/
app/
...
public/
...
And I need to say:
sc-init SOMETHING
What would the SOMETHING be? (myapp? public?)
Where does the sproutcore app html come from?
What are the best practices for serving that (routes?)
What really does sc-server do that I can’t do with WebBrick/Mongrel, etc.?
Thanks so much!
I haven’t deployed a built SproutCore app yet, so I can’t answer where the files should live in the Rails site structure (but I’m guessing within
public/because you’re essentially serving HTML and a lot of Javascript as static assets).sc-serverlets you run your application in your localhost while you’re developing it, so you don’t have to dosc-buildevery time you tweak something with your application. Remember that it’s the output ofsc-buildwhich will be the production site; you won’t be serving the site withsc-server(nor would you want to).