Relative Content

Tag Archive for javascriptruby-on-railsrendering

(Ruby on Rails) Issue Rendering Sign Up Page After Error Messages

I am new to Ruby on Rails and am trying to create a sign up page. I have a minor bug that occurs when a user enters invalid information in the form. I currently redirect them back to the sign up page and render the same page, except now including the error messages. The issue is that on the rerendered page the show password button does not work and the enter password field collapses (see picture 1). I am not understanding why these elements are changing since it is essentially the same page. Here is my html file for the page.