読者です 読者をやめる 読者になる 読者になる

merbでのアプリのひな形

merb-gen app myapp

.
|-- Rakefile
|-- app
|   |-- controllers
|   |   |-- application.rb
|   |   `-- exceptions.rb
|   |-- helpers
|   |   `-- global_helpers.rb
|   |-- models
|   |   `-- user.rb
|   `-- views
|       |-- exceptions
|       |   |-- not_acceptable.html.erb
|       |   `-- not_found.html.erb
|       `-- layout
|           `-- application.html.erb
|-- autotest
|   |-- discover.rb
|   |-- merb.rb
|   `-- merb_rspec.rb
|-- config
|   |-- database.yml
|   |-- dependencies.rb
|   |-- environments
|   |   |-- development.rb
|   |   |-- production.rb
|   |   |-- rake.rb
|   |   |-- staging.rb
|   |   `-- test.rb
|   |-- init.rb
|   |-- rack.rb
|   `-- router.rb
|-- doc
|   `-- rdoc
|       `-- generators
|           |-- merb_generator.rb
|           `-- template
|               `-- merb
|                   |-- api_grease.js
|                   |-- index.html.erb
|                   |-- merb.css
|                   |-- merb.rb
|                   |-- merb_doc_styles.css
|                   `-- prototype.js
|-- gems
|-- merb
|   |-- merb-auth
|                   `-- prototype.js
|-- gems
|-- merb
|   |-- merb-auth
|   |   |-- setup.rb
|   |   `-- strategies.rb
|   `-- session
|       `-- session.rb
|-- merb_dir.txt
|-- public
|   |-- favicon.ico
|   |-- images
|   |   `-- merb.jpg
|   |-- javascripts
|   |   |-- application.js
|   |   `-- jquery.js
|   |-- merb.fcgi
|   |-- robots.txt
|   `-- stylesheets
|       `-- master.css
|-- spec
|   |-- spec.opts
|   `-- spec_helper.rb
`-- tasks
    |-- doc.thor
    `-- merb.thor
        |-- app_script.rb
        |-- common.rb
        |-- gem_ext.rb
        |-- main.thor
        |-- ops.rb
        `-- utils.rb

ディレクトリ構成は綺麗だなぁ。configの下の分け方とかはいいなぁ。