Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
DNorthrup's user avatar
  • 285
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 ...
Mohamad's user avatar
  • 2,044
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. ...
faysal's user avatar
  • 21
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: ...
Duncan Bayne's user avatar