update devise and add pry-rails
fix some style
add the constraint for post route