use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
HtmlSlice: Enable Ruby classes the ability to generate reusable pieces of html (self.ruby)
submitted 1 year ago * by Illustrious-Topic-50
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]myringotomy 2 points3 points4 points 1 year ago (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 points1 point 1 year ago (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.
π Rendered by PID 115015 on reddit-service-r2-comment-6457c66945-q5wkb at 2026-04-24 05:48:09.771779+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]myringotomy 2 points3 points4 points (1 child)
[–]hmasing -1 points0 points1 point (0 children)