search for: my_block_of_funct

Displaying 1 result from an estimated 1 matches for "my_block_of_funct".

2006 Apr 20
0
Custom path overriding - routes.rb
...es where I do, and letting control pass through to the usual "invalid route" error handler when I don''t have an item for the path. So, is there someway to specify a special handler for routes.rb where I could have something like: map.connect ''*'', { |path| my_block_of_functions } where the block would be responsible for turning a dictionary of {:controller, :action, :id} values or nil if the path isn''t handled? Or something along those lines? It would also be handy to be able to put such a function/block at the to of the routes.rb, so I could potentially...