11 lines
322 B
Ruby
11 lines
322 B
Ruby
class OrganizationController < ApplicationController
|
|
layout 'project_base'
|
|
def index
|
|
#@projects = Project.find_by_sql("SELECT * FROM projects WHERE id IN (select MAX(id) from projects GROUP BY enterprise_name)")
|
|
@organizations = Organization.all
|
|
respond_to do |format|
|
|
format.html
|
|
end
|
|
end
|
|
end
|