class EnterprisesController < ApplicationController layout 'project_base' def index @enterprises = Project.find_by_sql("select enterprise_name from projects") end end