views:

46

answers:

1

Hi!

How do you enforce DRY when you have shared code amongst rjs files? I'm trying to avoid the duplicated code in this example:

thanks!

+2  A: 

Hmm... Could you possibly put the code in a Helper?

Shane Liebling
That is exactly what you should do. RJS is just another view and that is where helpers are made to be used.
Jared