You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Routing breaks when the scaffold/resource contains "end" in the name #172
Hello team,
I just found out that, when you create a scaffold/resource/route that contains "end" in the name, then the parsing of the routing file will fail next time. Basically, it will assume it is the "end" of the routes :web do section.
REPRODUCING THE BUG
amber g scaffold gender name:string
After this, try adding any other scaffold, the action will fail with:
"syntax error in './config/routes.cr:138:14': unexpected token: DELIMITER_START"
When checking the routes.cr file it is broken at the resources line for "gender" like this: resources "g
---new scaffold here---
enders", GenderController
changed the title [-]Routing breaks when certain scaffold names are used[/-][+]Routing breaks when the scaffold/resource contains "end" in the name[/+]on Mar 4, 2020
Activity
[-]Routing breaks when certain scaffold names are used[/-][+]Routing breaks when the scaffold/resource contains "end" in the name[/+]drujensen commentedon Mar 4, 2020
@CarlosAndresRamirez Wow. Thanks for reporting this.