All threads / Improving the Rails Route Generator Discussion

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Improving the Rails Route Generator Discussion

Reply
Reply

I am constantly changing my mind wether it is better to use ruby and rails or something statically typed like go. I personally hate to dig through tons of code not knowing where something is defined because it is for example meta-generated or included where I don't expect it. printereasy.com routermanuals.net techtipseasy.com

Reply

Did you consider automatically generating the sentinel if a pre-existing namespace was used? That way the API of the route method can remain unchanged, but you still solve the issue of having duplicated namespace definitions.

Alternatively a route_namespace method that accepts a block might work to. Something like this:

route_namespace :madmin do
  route …
  route …
end
Reply

I find this quite inspiring haha! Nice work!

Reply

The answers are really good, thanks everyone.
basketball legends fun

Reply

we’d like develop extra techniques in this regard,

Reply
Reply
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 41,443+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.