Closed kristianmandrup closed 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.
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.
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.
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 thegem_butler
gem in order to allow partitioning of a Gemfile.