« Installing Ruby | ^ Main | Ruby Eclipse »


Rails Apps come as MVC

After installing I couldn’t resist creating a test app. It was quite simple (see command line below). After installing I noticed something quite interesting while perusing the folders. In the /app folder they automatically install folders for the MVC (model, view, controller) architecture.

C:\Ruby\bin>rails "c:/documents and settings/administrator/development/rails/testing"
      exists
      exists  app/controllers
<strong>      create  app/helpers
      create  app/models
      create  app/views/layouts</strong>
      create  config/environments
      create  components
      create  db
      create  doc
      create  lib
      create  lib/tasks
      create  log
      create  public/images
      create  public/javascripts
      create  public/stylesheets
      create  script/performance
      create  script/process
      create  test/fixtures
      create  test/functional
      create  test/mocks/development
      create  test/mocks/test
      create  test/unit
      create  vendor
      create  vendor/plugins
      create  Rakefile
      create  README
      create  app/controllers/application.rb
      create  app/helpers/application_helper.rb
      create  test/test_helper.rb
      create  config/database.yml
      create  config/routes.rb
      create  public/.htaccess
      create  config/boot.rb
      create  config/environment.rb
      create  config/environments/production.rb
      create  config/environments/development.rb
      create  config/environments/test.rb
      create  script/about
      create  script/breakpointer
      create  script/console
      create  script/destroy
      create  script/generate
      create  script/performance/benchmarker
      create  script/performance/profiler
      create  script/process/reaper
      create  script/process/spawner
      create  script/process/spinner
      create  script/runner
      create  script/server
      create  script/plugin
      create  public/dispatch.rb
      create  public/dispatch.cgi
      create  public/dispatch.fcgi
      create  public/404.html
      create  public/500.html
      create  public/index.html
      create  public/favicon.ico
      create  public/robots.txt
      create  public/images/rails.png
      create  public/javascripts/prototype.js
      create  public/javascripts/effects.js
      create  public/javascripts/dragdrop.js
      create  public/javascripts/controls.js
      create  doc/README_FOR_APP
      create  log/server.log
      create  log/production.log
      create  log/development.log
      create  log/test.log

Notice the app/controller, app/model, and app/view folders. I found that pretty interesting. Thinking back I remember Sean Tierney saying Rails is a framework so it makes since now but it def caught me off-guard initially. This might be an interesting plight I'm on. ;-)

Posted by John C. Bland II on February 24, 2006 9:57 AM |

TrackBack

TrackBack URL for this entry:
http://mt.katapultmedia.com/mt-tb.cgi/50

Post a comment