Hi, I want that when the boolean changes to true and I save it again and I recharge the page, but it turns out that I do not reload it, thanks for the help. auto is boolean
MeetingsController
def auto1
r = Reunion.find(params[:id])
r.auto = true
r.valid?
p r.errors
r.save(validate: false)
respond_to do |format|
format.json { render :show}
end
end
routes.rb
get 'reuniones/:id/auto1' => 'reuniones#auto1', as: :auto1
show.html.erb
<% if @reunion.auto == nil %>
<%= link_to 'Autorizar', auto1_path(@reunion.id),remote:true %>
<% end %>