Re: [Rails] Re: Re: Rails3 routes
On 20 July 2012 21:38, Shandy Nantz <lists@ruby-forum.com> wrote:
> Colin Law wrote in post #1069541:
>> On 20 July 2012 17:44, Gintautas Šimkus <dihitales@gmail.com> wrote:
>>> Hey Shandy, use
>>>
>>> match '', :to => 'agency#index'
>>
>> Is that better then root :to=>... ?
>>
>> Colin
>
> When I do that I get this error:
>
> syntax error, unexpected ':', expecting kEND (SyntaxError)
> match '' :to => 'agency#index'
> ^
>
> I'm not sure if I have some issue with my rails setup, but it seems like
> everything I try it either doesn't work as expected, or errors when I
> stat
> the server. I'm running rails 3.2.2. Thanks for the suggestion,
So what happens with root :to?
Show us the exact line you have in routes.rb, what url you are asking
for and what happens.
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home