Tagged Questions
1
vote
1answer
152 views
Should one declare alternative response types (e.g. JSON) in Rails controller actions even if not utilising them?
Just wondering what the accepted convention is for Rails controller design. Currently, every controller in my app that I've written it set up to send a JSON response when necessary. Thing is, I only ...
6
votes
2answers
386 views
Proper Use Of HTML Data Attributes
I'm writing several JavaScript plugins that are run automatically when the proper HTML markup is detected on the page. For example, when a tabs class is detected, the tabs plugin is loaded dynamically ...