Lucky for me, the page is already polling the server for update information for updated information, and uses Backbone.js's awesome set function to invoke certain actions whenever the collection changes. Right now, the application is only responding to the collection's change event. Given the current design of the page, I just need to ensure that the application:
======== PROBLEM =======
All of that is a very long-winded way to get to my current problem. On step #1, I need to add RSVPs that are new to the collection. I am trying to do this by creating a handlebars template in app/assets/templates/checkins/rsvp_details.hbs.erb. Unfortunately, this template needs not only RSVP data, but the user attached to that RSVP as well. This was not a problem when the page is originally rendered because you can ActiveRecord associations to pull in the user info in the view. However, a JSON object doesn't have that functionality. How do folks normally handle this problem? Should I return different data for an HTML response vs. a JSON response in the Checkins#index action that includes the user data in a nested JSON object?
I have other questions as well, but first things first.
--
You received this message because you are subscribed to the Google Groups "Bridge Troll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bridge-troll...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.