[Rails] Re: Dynamically generated form + Saving multiple records at once

2009-03-23 Thread Marcelo Ruiz
This is a code sample of what I have made so far: New Report for <%= @way.road.name%>, <%= @way.name%> <%= form_tag :action => :create, :id => @way.id%> Date: <%= datetime_select("report", "time") %> Priority: <%= radio_button("report", "priority", 1) %> high - <%= radio_butto

[Rails] Re: Dynamically generated form + Saving multiple records at once

2009-03-23 Thread Marcelo Ruiz
Thank you Freddy. That wasn't exactly what I needed to do, but the screencasts helped me in another case. What I actually need to do is simpler: create multiple Reports at the same time. Each report has a description with a textfield and I have to associate it with a different segment. That's all

[Rails] Re: Dynamically generated form + Saving multiple records at once

2009-03-21 Thread Freddy Andersen
I think you will be happy to watch this screencast http://railscasts.com/episodes/75-complex-forms-part-3 Its a project that has_many tasks but it talks about exactly the problem you have with build_segments 3.times... --~--~-~--~~~---~--~~ You received this messa