>
> 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',
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
>
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
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'
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
5 matches
Mail list logo