// $
//
// $(.upvoteButton).on('click', function(event) {
// event.preventDefault();
// var targetReview = this.parentElement.action;
//
// var id = this.id;
//
// var request = $.ajax({
// url: ${targetReview}.json,
// method: 'POST',
// error: function() {
// alert('Please sign in!');
// }
// });
//
// request.done(function(data) {
// document.getElementById(upcount${id}).innerHTML = ${data.upvotes} upvotes;
// document.getElementById(downcount${id}).innerHTML = ${data.downvotes} downvotes;
// document.getElementById(sum${id}).innerHTML = sum of votes: ${data.sumvotes};
// });
// });
//
// $(.downvoteButton).on('click', function(event) {
// event.preventDefault();
// var targetReview = this.parentElement.action;
// var id = this.id;
//
// var request = $.ajax({
// url: ${targetReview}.json,
// method: 'POST',
// error: function() {
// alert('Please sign in!');
// }
// });
//
// request.done(function(data) {
// document.getElementById(upcount${id}).innerHTML = ${data.upvotes} upvotes;
// document.getElementById(downcount${id}).innerHTML = ${data.downvotes} downvotes;
// document.getElementById(sum${id}).innerHTML = sum of votes: ${data.sumvotes};
// });
//
// });
// });
<%= form_tag(devtools_path, method: :get) do %> <%= text_field_tag :search, params[:search] %> <%= submit_tag "Search", title: nil %> <% end %>
<% if !current_user.nil? && current_user.admin? %>
Welcome Super Elite Group 8 member, you are a member of an exclusive, Clandestine, and Dope AF club.
<% @devtools.each do |devtool|%>