New Discussion

Notifications

You’re not receiving notifications from this thread.

Improving the Rails Route Generator Discussion

5
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!

This is very helpful. thanks

Join the discussion
Create an account Log in

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.