. , . , . . , , . , .
class Position
has_many :candidate_positions
has_many :candidates, :through => :candidate_positions
end
class Candidate
has_many :candidate_positions
has_many :positions, :through => :candidate_positions
has_many :past_employments
accepts_nested_attributes_for :past_employments
accepts_nested_attributes_for :candidate_positions
end
class PastEmployment
belongs_to :candidate
end
class CandidatePosition
belongs_to :candidate
belongs_to :position
end
map.resources :positions
map.resources :candidates
, . , HomeController, , , , . , ! , , <% form_for @candidate %>. <%= render @positions %>, , Rails , views/positions/_position.html.erb .
, , . , , - . , Rails , . URL-, , .