This is the code in my logins_form.html.erb
<%= form_for(@login) do |f| %>
// code here
<%end%>
<%= form_tag(:controller=>'posts', :action=>'index') %>
// code here
<%end> --1
<%= form_tag(:controller=>'logins', :action=>'create') %>
// code here
<%end%> --2
It is only accepting one of the 1
or 2
not both. Why so? Even if I remove one of the two, both the forms are redirecting to logins.
What am I doing wrong?
Thanks.