Update app/views/devise/registrations/edit.html.erb

Use Rails link_to helpers instead of anchor tags. Also use a clean way of using 'data-toggle' and 'data-dismiss' in the link_to.