that works,

tnx :-)

On 6/1/06, Jeremy Kemper <[EMAIL PROTECTED]> wrote:
On Jun 1, 2006, at 12:04 PM, Rodney Ramdas wrote:
> hi
>
> this seems to give issues:
>
> simply doing,
>
> def helper_routes
>  with_routing do |set|
>     set.draw { set.connect ':controller/:action/:id' }
>     [..]
> end
> end
>
> throws
>
> NoMethodError: undefined method `connect' for
> #<ActionController::Routing::RouteSet:0x2346860>
>
> i don't quite get why since RouteSet#draw simply yields to Mapper
> which does connect.

Use the map that set.draw yields:

with_routing do |set|
   set.draw do |map|
     map.connect ':controller/:action/:id'
   end
end

jeremy



--
Rodney
http://www.pinupgeek.com
http://www.dutchrailers.org
_______________________________________________
Rails-core mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to