JS only works by refreshing the page

0

Click the button:

<td><%= link_to 'simulacao', simulacao_path(simulado) %></td>

<%= form_tag('/correcao', method: :get, remote: true) %>

<%= button_tag 'Corrigir', class:'btn btn-primary btn-lg' %>

routes:

get 'simulacao/:id' => 'simulados#simulacao', as: 'simulacao'
get '/correcao' => 'simulados#correcao'

I just noticed that even though clicking on any link the button does not function:

<a href="#">nao faz nada</a>

a light? = D

    
asked by anonymous 08.10.2016 / 17:32

0 answers