[Rails] Re: Rails3 routes

2012-07-24 Thread radical
> > i also have the same problem.. > i use this coding: > match 'pages/:id/show2' => 'pages#show2', as: 'shows' > > the result, i can only generate for url or path used.. for example .. <%= > link_to 'show2', shows_path(page) %> > and the url > i also try to use this: > root to: 'pages#show',

Re: [Rails] Re: Rails3 routes

2012-07-20 Thread Colin Law
On 20 July 2012 17:44, Gintautas Šimkus wrote: > Hey Shandy, use > > match '', :to => 'agency#index' Is that better then root :to=>... ? Colin > > or replace index with another agency controller action explicitly. > > In order to solve the second problem we'd need your routes.rb file (please >

Re: [Rails] Re: Rails3 routes

2012-07-20 Thread Gintautas Šimkus
Hey Shandy, use match '', :to => 'agency#index' or replace index with another agency controller action explicitly. In order to solve the second problem we'd need your routes.rb file (please use pastie.org or simple code formatting to make it easy to read. 2012/7/20 Colin Law > On 20 July 2012

Re: [Rails] Re: Rails3 routes

2012-07-20 Thread Colin Law
On 20 July 2012 16:24, Shandy Nantz wrote: > Colin Law wrote in post #1069377: >> On 19 July 2012 17:19, Shandy Nantz wrote: >> >> Is that not just >> root :to => "agency#index" >> assuming the action you want is index. Unless I have forgotten how >> rails 2 routing worked. >> >> Colin > > That'

[Rails] Re: Rails3 routes

2012-07-20 Thread Shandy Nantz
Colin Law wrote in post #1069377: > On 19 July 2012 17:19, Shandy Nantz wrote: > > Is that not just > root :to => "agency#index" > assuming the action you want is index. Unless I have forgotten how > rails 2 routing worked. > > Colin That's what I thought, but I keep getting "No route matches [G