first preparations
rails g ember:bootstrap
insert something in the body tag
enter a text field at the top of our raffler
ember bindings won't detect setting properties on ApplicationController directly, instead you need to go to get and set functions for every property you want to access
when i submit an entry adds it to a list bellow
render out the template in controller based on current route
set a default route when visit the application
make entries controller behaving like an array by delegating its various function calls to its internal content array
set up initial internal array of entries controller
add a draw winner button to select a random entry and mark them as a winner, but actual implementation don't work because entry.winner is updated in a way that the bindings can't detect to update the view ;we must resort to set ember function
make internal array of entries controller an Ember Object so we can use set Ember function to update the property of an element. In this way the view is updated when draw a winner from the entries list
look for the winner and the highlight properties on our entry object and only set those of the span class if the property evaluate to true
set the most recent winner in red
rails g resource entry name winner:boolean
write json api
populate entries controller with data fetched from rails json api
call a property on the controller named store that access the ember-data store to save the entry on rails side; don't work now because rails search for a route /entrys
save updated entries on the rails side
every time a winner attribute of the controller entries are changed is checked if every entry have winner property set to true so then draw winner button is disabled