Fix styles for rails 3.x

Change based on railsformers fork.