I have around 7 controllers with each 6-12 actions. Some of these
actions use about 3-5 actions only working with another model and they
don’t have much to do with the controller they’re in but getting one
single id in order to get the right data out of the other model.
What do you guys think? Is it alright to have them in these controllers
or should I already create a own controller for these 3-5 actions
relating to that one model?
I’m not sure if it’s alright or dirty or whatever. Just wanna know your
Thanks, I’ll have a look.
Didn’t tell me much I didn’t know already but what it didn’t tell is how
am I supposed to keep my application RESTful if I need to load various
resources in one single action?
I mean it’s easy to stay RESTful in small applications like a blog with
a small amount of resource and maybe 2 or 3 nested resources but when it
comes to complex application I don’t know how to keep it RESTful. How
would you guys do it?
Can you show some example code related to your original query. It will
help us understanding the query in a better way.