undefined method `explain' for #<ActiveRecord::ConnectionAdapters::MysqlAdapter
问题 I'm new to Ruby on Rails, but I have followed some tutorials and know my way around a little bit. I have generated some scaffolding and inserted data into a MySql database. When navigating to index.html.erb I receive the error in the title The controller is executing index def index @beers = Beer.all respond_to do |format| format.html # index.html.erb format.json { render :json => @beers } end end And has this as a structure Beer: id, brewer_id, name, price, score, color, brew_type, create_at