我有以下代码:
<%@submission_general = ActiveRecord::Base.connection.select_all('SELECT * FROM DBASE_general.submission')%>
<%= @submission_general.count%> -- gives 11,000 entries
<%= @submission_general[1].sub_id%> -- gives undefined method `sub_id' for #<Hash:0xb4a01108>
我哪里出错了?
非常感谢你的帮助