jonleighton / focused_controller

MIT License
468 stars 27 forks source link

Made more clear in README how to insert the focused_controller_routes helper #16

Closed kristianmandrup closed 12 years ago

kristianmandrup commented 12 years ago

I think there used to be functionality in order to divide the routes file into smaller parts using draw? Has this been removed and why? I really like being able to partition most things. I recently created the gem_butler gem in order to allow partitioning of a Gemfile.

kristianmandrup commented 12 years ago

I think this macro functionality is very useful and makes the controller look nicer too. Also note that I made a #run class macro available, similar to #expose.

jonleighton commented 12 years ago

Thanks, but I don't want to add a DSL like this. I think it obscures the underlying fact that actions are classes, and doesn't add much benefit.

kristianmandrup commented 12 years ago

Yes, if you use Focused Controller standalone in a simple Rails app the macros may not really be necessary. But when you have more advanced scenarios, fx integration with other gems, they can quickly become quite handy ;) But if anyone stumbles on this, at least my fork is out there, ready with the macros.