implement Rails with no JS pattern