Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
Ruby on Rails controller based JavaScript
(opens in new tab)
(github.com)
2 points
s12chung
11y ago
2 comments
Save
Share
2 comments
2 comments · 1 top-level
top
newest
oldest
MrBra
11y ago
· 1 in thread
Without having inspected the repo too much I ask myself.. (well, not just myself).. how is this different from requiring an external .js in your view except for a different, nice stylistic choice?
s12chung
OP
11y ago
I try to make it clean having different JS for each individual HTML response. Plus, JSON parameters.
The alternative is usually having script tags with written JS inside, which is ugly.
j
/
k
navigate · click thread line to collapse