metamaps--metamaps/app/controllers/main_controller.rb
2012-09-22 22:39:12 -04:00

14 lines
204 B
Ruby

class MainController < ApplicationController
respond_to :html, :js, :json
def home
@current_user = current_user
@all = Group.all + Person.all + Item.all
respond_with(@all)
end
end