Displaying 1 result from an estimated 1 matches for "travel_service".
2007 Feb 12
4
Proper use of "send" method
I have the following models:
class MainService < ActiveRecord::Base
has_one :travel_service
end
class TravelService < ActiveRecord::Base
belongs_to :main_service
end
I can use the following:
@main_service.travel_service = TravelService.new
But I can''t use the following:
@main_service.send("travel_service") = TravelService.new
It says " unexpected '...