Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
## This configuration breaks the Upcoming Stories page... ActionController::Routing::Routes.draw do |map| map.resources :stories, :has_many => :votes, :collection => { :bin => :get } map.root :controller => "stories" map.connect ':controller/:action/:id' map.connect ':controller/:action/:id.:format' map.resource :session end ## This configuration breaks the Login page (/session/new) ActionController::Routing::Routes.draw do |map| map.resource :session map.resources :stories, :has_many => :votes, :collection => { :bin => :get } map.root :controller => "stories" map.connect ':controller/:action/:id' map.connect ':controller/:action/:id.:format' end
This paste will be private.
From the Design Piracy series on my blog: