Generating link path with parameters
- by fl00r
Hi. I've got model with many associations.
User :has_many = :posts, :videos, :images etc
I've got helper method, which receives one of this association
draw_chart user.videos
def draw_chart(assoc)
assoc.each do |a|
link_to "update", [a.user, a], :method => :put, :remote => true, :confirm => 'orrly?'
end
end
Problem here is to…