I'm a Rails noob. I won't lie. I've been tasked with taking two forms and turning them into one dynamic form. This is a Login/Sign Up form. The only issue I have is how to handle the Rails portion of the code. Using jQuery, I could have easily replaced HTML form actions, but how would I approach replacing the action/destination in the rails code based on a login or sign up radio selection.
<%= form_tag login_path, :id => '_login_form' do %>
<% end %>
<%= form_tag sign_up_path, :id => '_sign_up_form' do %>
<% end %>