You might want to take a look at the UJS plugin.
This seems like the kind of thing you want. It’s all ruby, with no javascript anywhere. And can be DRY too if used well.
Have a Hide, and your RJS-ish code inside an apply_behavior.
Vish
You might want to take a look at the UJS plugin.
This seems like the kind of thing you want. It’s all ruby, with no javascript anywhere. And can be DRY too if used well.
Have a Hide, and your RJS-ish code inside an apply_behavior.
Vish