P
Paul Thomas
How do I select records from a table that has a different name than my
controller?
My example is as follows
in locations_controller.rb
class LocationsController < ApplicationController
def new
@location = Location.new
@regions = #Needs to do a find
all) to populate from regions table
end
controller?
My example is as follows
in locations_controller.rb
class LocationsController < ApplicationController
def new
@location = Location.new
@regions = #Needs to do a find
end