Noob scoping issue, I imagine. :\\
class ApplicationController < ActionController::Base
protect_from_forgery
@locations = get_locations
def get_locat
I imagine that this line:
@locations = get_locations
... is trying to access the class level method get_locations
and not the instance method.
The clue here is that the error message is showing that it can't find it on the class itself (ApplicationController:Class) and not an instance of that class. That means that you're in the class scope, not instance scope.
This would fix it:
def self.get_locations
Location.where(:active => true).order('name').all
end