Page.all.each do |page|
map.connect page.url, :controller => p.controller, :action =>
p.action
# get page.url + ' => ' + p.controller+'#'+p.action
end
This worked in rails2 but in rails3 this doesn't work anymore. I do
get "rake routes" display my route but app.get('/test/page') doesn't
work. I guess it has something to do with the parsing of my Page
class, as not only map.method is relevant, but also any word inside
that block.