Hook into the create/delete actions for watching with some Ajax goodness
authorMarius Mathiesen <marius@shortcut.no>
Thu, 26 Nov 2009 14:42:24 +0000 (15:42 +0100)
committerMarius Mathiesen <marius@shortcut.no>
Thu, 3 Dec 2009 13:18:58 +0000 (14:18 +0100)
commitc753d1dbaa667dc9382c28f5942d95f46a1b765f
tree8559c60b81806d4861d1ca3f5e6254cd4e4df1e8
parente45da1cce6d9e71605c29c9c0672203f3fec0824
Hook into the create/delete actions for watching with some Ajax goodness

- Add a custom attr to the a tags
- Replace the obtrusive Rails actions with some homebrew
- Favorites#{create,destroy} now supplies a Location header intercepted by javascript
app/controllers/favorites_controller.rb
app/views/repositories/show.html.erb
public/javascripts/application.js
test/functional/favorites_controller_test.rb