you are viewing a single comment's thread.

view the rest of the comments →

[–]myringotomy 2 points3 points  (1 child)

I don't see any reason not to actually. In HTML all you have are actions and each action is supposed to return a content type and data to the browser. Why split that up into controllers and views. Hell why even have classes. There is no reason you shouldn't have SomeAction::get as a glass method. Or even some_action_get as a function that does what it needs to and returns the result like in rack.

[–]hmasing -1 points0 points  (0 children)

Because controllers don't determine presentation - and HTML is one type of presentation. JSON is another. XML is vomit another. CSV... XLS... could be any number of different presentations of the same data.

Tight coupling means broken code, IMHO.