radar/forem — Issue #73: rake routes & getting hold of the helpers in tests
Author: nruth
Created: 2011-11-04 17:01:01+00:00
State: open

I've been having some problems with the developer-accessibility of engine routes and route helpers, and would appreciate comments.

If we can drop some stuff in the readme, or think of patches to forem or rails, I'd consider this a success.

1. I want to be able to list the forem routes, so I know which route helpers are available to me. That is to say, I want to be able to do rake:routes:forem or something like that.

2. I also want to be able to do visit forem.forums_path or similar in my capybara tests. Perhaps this can be done through Forem::Engine.route_helpers (I think I've got the wrong chain there) but it didn't seem to work when I did it.

I tried looking into the rails engines code and rake routes stuff, but got lost/frustrated quite quickly. I'd spend longer on it now but I am swamped with non-rails stuff at the moment, so thought I'd see if anyone had ideas.