New Discussion

Notifications

You’re not receiving notifications from this thread.

Improving the Rails Route Generator Discussion

4
General

good

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

I find this quite inspiring haha! Nice work!

we’d like develop extra techniques in this regard,

I found that haha pretty inspiring! Good job!

Join the discussion
Create an account Log in

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

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

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