Lowering dependency for coffee-rails and sass-rails

If I'm still on version 3 of rails, how could I install coffee-rails and sass-rails?