Makes sense...
Thank you!
-- -- Tom Mornini
On Sep 22, 2005, at 4:56 PM, François Beausoleil wrote:
>
>
> Tom Mornini said the following on 2005-09-22 14:10:
>
>
>> Why is it that:
>> link_to ''Example'', :controller =>
''test'', :action => :test
>> works, but
>> link_to ''Example'', :controller => :test, :action
=> :test
>> throws an error?
>>
>>
>
> Because the controller may include a path (modules in app/
> controllers). So, Rails tries to search for a slash character, but
> the Symbol class does not support it. Short term fix - pass
> strings to :controller, long term - patch Rails to call to_s on the
> controller item.
>
> Bye !
> François
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>