Created
November 22, 2008 18:24
-
-
Save knowtheory/27907 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
umbra:Sites ted$ merb-gen app test | |
Generating with app generator: | |
[ADDED] tasks/merb.thor | |
[ADDED] .gitignore | |
[ADDED] public/.htaccess | |
[ADDED] tasks/doc.thor | |
[ADDED] public/javascripts/jquery.js | |
[ADDED] doc/rdoc/generators/merb_generator.rb | |
[ADDED] doc/rdoc/generators/template/merb/api_grease.js | |
[ADDED] doc/rdoc/generators/template/merb/index.html.erb | |
[ADDED] doc/rdoc/generators/template/merb/merb.css | |
[ADDED] doc/rdoc/generators/template/merb/merb.rb | |
[ADDED] doc/rdoc/generators/template/merb/merb_doc_styles.css | |
[ADDED] doc/rdoc/generators/template/merb/prototype.js | |
[ADDED] public/favicon.ico | |
[ADDED] public/images/merb.jpg | |
[ADDED] public/merb.fcgi | |
[ADDED] public/robots.txt | |
[ADDED] gems | |
[ADDED] Rakefile | |
[ADDED] app/controllers/application.rb | |
[ADDED] app/controllers/exceptions.rb | |
[ADDED] app/helpers/global_helpers.rb | |
[ADDED] app/models/user.rb | |
[ADDED] app/views/exceptions/not_acceptable.html.erb | |
[ADDED] app/views/exceptions/not_found.html.erb | |
[ADDED] autotest/discover.rb | |
[ADDED] autotest/merb.rb | |
[ADDED] autotest/merb_rspec.rb | |
[ADDED] config/database.yml | |
[ADDED] config/dependencies.rb | |
[ADDED] config/environments/development.rb | |
[ADDED] config/environments/production.rb | |
[ADDED] config/environments/rake.rb | |
[ADDED] config/environments/staging.rb | |
[ADDED] config/environments/test.rb | |
[ADDED] config/init.rb | |
[ADDED] config/rack.rb | |
[ADDED] config/router.rb | |
[ADDED] public/javascripts/application.js | |
[ADDED] public/stylesheets/master.css | |
[ADDED] merb/merb-auth/setup.rb | |
[ADDED] merb/merb-auth/strategies.rb | |
[ADDED] merb/session/session.rb | |
[ADDED] spec | |
[ADDED] app/views/layout/application.html.erb | |
umbra:Sites ted$ clear | |
umbra:Sites ted$ cd test/ | |
umbra:test ted$ merb-gen resource test | |
Loading init file from /Users/ted/Sites/test/config/init.rb | |
Loading /Users/ted/Sites/test/config/environments/development.rb | |
Generating with resource generator: | |
Loading init file from /Users/ted/Sites/test/config/init.rb | |
Loading /Users/ted/Sites/test/config/environments/development.rb | |
Loading init file from /Users/ted/Sites/test/config/init.rb | |
Loading /Users/ted/Sites/test/config/environments/development.rb | |
Loading init file from /Users/ted/Sites/test/config/init.rb | |
Loading /Users/ted/Sites/test/config/environments/development.rb | |
[ADDED] spec/models/test_spec.rb | |
[ADDED] app/models/test.rb | |
[ADDED] spec/requests/tests_spec.rb | |
[ADDED] app/controllers/tests.rb | |
[ADDED] app/views/tests/index.html.erb | |
[ADDED] app/views/tests/show.html.erb | |
[ADDED] app/views/tests/edit.html.erb | |
[ADDED] app/views/tests/new.html.erb | |
[ADDED] app/helpers/tests_helper.rb | |
resources :tests route added to config/router.rb | |
umbra:test ted$ merb-gen resource test | |
Loading init file from /Users/ted/Sites/test/config/init.rb | |
Loading /Users/ted/Sites/test/config/environments/development.rb | |
Generating with resource generator: | |
Loading init file from /Users/ted/Sites/test/config/init.rb | |
Loading /Users/ted/Sites/test/config/environments/development.rb | |
Loading init file from /Users/ted/Sites/test/config/init.rb | |
Loading /Users/ted/Sites/test/config/environments/development.rb | |
Loading init file from /Users/ted/Sites/test/config/init.rb | |
Loading /Users/ted/Sites/test/config/environments/development.rb | |
[IDENTICAL] spec/models/test_spec.rb | |
[IDENTICAL] app/models/test.rb | |
[IDENTICAL] spec/requests/tests_spec.rb | |
[IDENTICAL] app/controllers/tests.rb | |
[IDENTICAL] app/views/tests/index.html.erb | |
[IDENTICAL] app/views/tests/show.html.erb | |
[IDENTICAL] app/views/tests/edit.html.erb | |
[IDENTICAL] app/views/tests/new.html.erb | |
[IDENTICAL] app/helpers/tests_helper.rb | |
resources :tests route added to config/router.rb | |
umbra:test ted$ merb-gen resource test -d | |
Loading init file from /Users/ted/Sites/test/config/init.rb | |
Loading /Users/ted/Sites/test/config/environments/development.rb | |
Generating with resource generator: | |
Loading init file from /Users/ted/Sites/test/config/init.rb | |
Loading /Users/ted/Sites/test/config/environments/development.rb | |
Loading init file from /Users/ted/Sites/test/config/init.rb | |
Loading /Users/ted/Sites/test/config/environments/development.rb | |
Loading init file from /Users/ted/Sites/test/config/init.rb | |
Loading /Users/ted/Sites/test/config/environments/development.rb | |
[DELETED] spec/models/test_spec.rb | |
[DELETED] app/models/test.rb | |
[DELETED] spec/requests/tests_spec.rb | |
[DELETED] app/controllers/tests.rb | |
[DELETED] app/views/tests/index.html.erb | |
[DELETED] app/views/tests/show.html.erb | |
[DELETED] app/views/tests/edit.html.erb | |
[DELETED] app/views/tests/new.html.erb | |
[DELETED] app/helpers/tests_helper.rb | |
umbra:test ted$ cat config/router.rb | |
# Merb::Router is the request routing mapper for the merb framework. | |
# | |
# You can route a specific URL to a controller / action pair: | |
# | |
# match("/contact"). | |
# to(:controller => "info", :action => "contact") | |
# | |
# You can define placeholder parts of the url with the :symbol notation. These | |
# placeholders will be available in the params hash of your controllers. For example: | |
# | |
# match("/books/:book_id/:action"). | |
# to(:controller => "books") | |
# | |
# Or, use placeholders in the "to" results for more complicated routing, e.g.: | |
# | |
# match("/admin/:module/:controller/:action/:id"). | |
# to(:controller => ":module/:controller") | |
# | |
# You can specify conditions on the placeholder by passing a hash as the second | |
# argument of "match" | |
# | |
# match("/registration/:course_name", :course_name => /^[a-z]{3,5}-\d{5}$/). | |
# to(:controller => "registration") | |
# | |
# You can also use regular expressions, deferred routes, and many other options. | |
# See merb/specs/merb/router.rb for a fairly complete usage sample. | |
Merb.logger.info("Compiling routes...") | |
Merb::Router.prepare do | |
resources :tests | |
resources :tests | |
resources :tests | |
# RESTful routes | |
# resources :posts | |
# Adds the required routes for merb-auth using the password slice | |
slice(:merb_auth_slice_password, :name_prefix => nil, :path_prefix => "") | |
# This is the default route for /:controller/:action/:id | |
# This is fine for most cases. If you're heavily using resource-based | |
# routes, you may want to comment/remove this line to prevent | |
# clients from calling your create or destroy actions with a GET | |
default_routes | |
# Change this for your home page to be available at / | |
# match('/').to(:controller => 'whatever', :action =>'index') | |
endumbra:test ted$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment