Skip to content

Instantly share code, notes, and snippets.

@mdemare
Created December 3, 2008 23:04
Show Gist options
  • Save mdemare/31748 to your computer and use it in GitHub Desktop.
Save mdemare/31748 to your computer and use it in GitHub Desktop.
rails professional_urls
cd professional_urls
for x in asp php exe jsp cgi; do script/generate controller $x index default home show edit; done
echo 'ActionController::Routing::Routes.draw { |map| map.connect ":action.:controller" }' > config/routes.rb
echo '<pre><%= h params.to_yaml %></pre>' > app/views/asp/default.html.erb
script/server &
open http://localhost:3000/default.asp?pgx=LF&ixFilter=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment