I have the following code for a demo button:
= form_tag(new_demo_path, :method => "put", id: "demo-form") do
= hidden_field_tag :time, (Time.now.to_f * 1000)
.cannot-see-me= text_field_tag :name, params[:name]
= submit_tag button_title, :name => nil, :id => 'start_demo_btn', :class => button_class, onclick: "$('#please-wait').modal({keyboard: false, backdrop: 'static'});"
If the user click too fast it won't do anything (to avoid bots) there is also a hidden field that (once filled in) will avoid the demo environment from being generated.
For some reason googlebot is still able to create demo environments... Is there something in the submit_tag or form_tag I can include to instruct it not to click the button?