codemancers / rapidfire

Making dynamic surveys should be easy!
https://rapidfire.fly.dev/
MIT License
319 stars 141 forks source link

Include info on how to prevent routing errors #107

Closed codeodor closed 5 years ago

codeodor commented 7 years ago

When an application is already well established, it may be too time-consuming to change all instances of route helpers from the resource-based style to actually name the method, and all where named methods are used, to be prefixed by main_app.

codeodor commented 7 years ago

Hold off on this. It doesn't generate the correct routes, even though the errors went away.

codeodor commented 7 years ago

Ok, I updated the example with code that works.

But is there a better way to accomplish this?

codeodor commented 7 years ago

Word of warning: doing this necessitates lots of restarts any time you change something that would reload the classes in use here. I'm still in search of a better way, but definitely still want to save someone the hassle of sticking main_app in front of every place they've used a route helper.

iffyuva commented 5 years ago

Thanks @codeodor for this PR