All Questions
Tagged with ruby-on-rails json
4 questions
3
votes
1
answer
210
views
Rails 5 controller to get information about Steam users
I've done a bit of modifications and finally got it working, and did a lot of reading about @ vs @@ vs just declaring and I came ...
3
votes
1
answer
2k
views
Testing a Rails API controller
I'm building a JSON API. I'm writing my controller tests so that they compare the response body to actual JSON I'm generating in my tests using ActiveRecord. I wrote two helper methods that make the ...
2
votes
1
answer
76
views
Displaying shows with videos
My method takes a long time to respond, so I'd like to make this method more efficient. I'd also like this method made with joins.
...
4
votes
1
answer
446
views
Testing Backbone.js
I'm writing a (nearly-)single-page app using Ruby on Rails 3.1 and Backbone.js. Thus, most of my controllers return rootless JSON, courtesy this setting as per the Backbone.js docs:
...