I am working on Users' Registration and want to give the User a possibility to quit registration process, if the don't want to fill out the address in the second step of my form. For this case I created a "Quit"-button and had in my view defined:
<%= link_to "Quit", @user, method: :delete, data: { confirm: "Your data won't be saved. Proceed?" }, class: 'btn form margin button-align' %>
This worked, but I didn't like the style of my alert window and found some tips, how to change it here. So, I changed my view as follows (just part of it):
class="modal-title" id="myModalLabel"> Your data won't be saved! </h4>
</div>
<div class="modal-body">
Are you sure you want to quit the registration process?
<%= link_to "Yes", @user, root_path, method: :delete %>/
<%= link_to "No", "javascript:void(0)",'data-dismiss': "modal" %>
</div>
</div>
</div>
</div>
...
<div class="column">
<%= link_to "Quit", "javascript:void(0)", 'data-target': "#myModal", 'data-toggle': "modal", class: 'btn form margin button-align' %>
</div>
But it shows me the error above. What's wrong?