jejacks0n/mercury — Issue #119: mercury:saved is not fired
Author: rodrigosol
Created: 2012-01-03 15:02:01+00:00
State: open

I am trying to catch the mercury:saved event without success. My intention is to redirect the browser when this event is triggered.

My code:
```javascript
$(window).bind('mercury:saved', function() { my code here });
```
My rails action

```ruby
def mercury_update
artigo = Artigo.find(params[:id])
artigo.titulo = params[:content][:artigo_titulo][:value]
artigo.corpo = params[:content][:artigo_corpo][:value]
artigo.save!
render text: ""
end
```

I am using mercury-rails (0.2.3) and rails 3.1.3.

Any idea?