rails directory structure for multiple apps?
Coming from a django, I'm used to a startproject and a startapp command. I
just got started in rails and so far I've only encountered the new command
to start an application.
I was wondering what the directory structure and interactivity was
supposed to be like if you have a project to hook up multiple rails apps?
In django, we use startproject for the main project and startapp for each
individual app, and with a urls.py files we can hook up the routing for
each app.
I've looked at the structure @
http://www.tutorialspoint.com/ruby-on-rails/rails-directory-structure.htm.
Is this the structure of a project or a single app (assuming I want to
make a project with multiple apps that need to be decoupled)? Also, if I
had multiple "apps" created by the new command, how would I link up the
apps together (django allowed absolute and relative imports starting from
the project directory and had urls.py to handle the url routing)?
No comments:
Post a Comment