{"comment":{"created_at":"2011-10-19T01:36:27Z","body":"What are you expecting to happen here? \r\n\r\nYou're passing in a collection of strings, but then expecting them to have attributes.","updated_at":"2011-10-19T01:36:27Z","url":"https://api.github.com/repos/nesquena/rabl/issues/comments/2450935","id":2450935,"user":{"avatar_url":"https://secure.gravatar.com/avatar/680b89cf52f7ea32975f1079162b5a48?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"680b89cf52f7ea32975f1079162b5a48","url":"https://api.github.com/users/mschulkind","id":523089,"login":"mschulkind"}},"action":"created","issue":{"number":42,"created_at":"2011-06-15T18:17:01Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"In the backbone.js FAQ, Jeremy suggests bootstrapping a backbone.js model by using ERB and converting the object/collection to json:\r\n\r\n```javascript\r\n<script>\r\n  Accounts.refresh(<%= @accounts.to_json %>);\r\n  Projects.refresh(<%= @projects.to_json(:collaborators => true) %>);\r\n</script>\r\n```\r\nhttp://documentcloud.github.com/backbone/#FAQ-bootstrap\r\n\r\nHow could I render a rabl template in the view instead of calling to_json on the object/collection?","comments":23,"title":"Render Rabl templates from view (in order to bootstrap a backbone.js model)","updated_at":"2011-10-19T01:36:27Z","url":"https://api.github.com/repos/nesquena/rabl/issues/42","id":1062839,"assignee":null,"milestone":null,"closed_at":"2011-07-21T19:49:25Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/05d674b2b03b5d47c9780fd090aecbfb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"05d674b2b03b5d47c9780fd090aecbfb","url":"https://api.github.com/users/scottmessinger","id":100121,"login":"scottmessinger"},"html_url":"https://github.com/nesquena/rabl/issues/42","labels":[],"state":"closed"},"legacy":{"issue_id":1062839,"comment_id":2450935}}