Skip to content

Instantly share code, notes, and snippets.

@tslim
Created April 19, 2012 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tslim/2419581 to your computer and use it in GitHub Desktop.
Save tslim/2419581 to your computer and use it in GitHub Desktop.
show: (id) ->
entry = new Raffler.Models.Entry({id: id})
entry.fetch(
success: =>
console.log(entry.get('title'))
alert entry.get('name')
console.log(entry)
console.log(entry.attributes + " haha")
viewsangat = new Raffler.Views.Page({model: entry}) # Might one to declare this outside
viewsangat.render()
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment