devise install part 1
install devise part 2

there may or may not be an error with rails 4.0. downgrading to 3.2