Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: 14113
Better solution is to use ajax. It's easier to read now and programmer knows what's going on.
When you are using the ".erb" code, it out of context and there are two different places.
I tried to do a little gem about this https://github.com/14113/hello_bar
Perhaps, for someone will be useful.
To this question I would also like to know the answer. Can somebody help?