Skip to content

Instantly share code, notes, and snippets.

View Irostovsky's full-sized avatar

Ivan Rostovsky Irostovsky

View GitHub Profile
@Irostovsky
Irostovsky / Problem
Created October 7, 2011 08:08 — forked from clemens/Problem
When the constraints block is active, I get RoutingError: No route matches "/" when going to localhost:3000. If I comment the block out, it works just fine. But I need both:
http://example.com should render PagesController#show with params[:permalink] being 'index'
http://clemensk.example.com should render ProfilesController#show
Hints anyone?
Thanks!