Thanks a lot for the great book! I am doing RSpec and Cucumber so I can hardly wait for you to write the missing chapters! Thanks for putting out V2 of the beta so fast!
One of the cool new features of Rails 2.3 is the build in ability to use nested forms. I have implemented this using the “old” way as described by Ryan here: http://railscasts.com/episodes/75
I would like to know how I can use webrat with the fill_in method to fill in an array of text-fields each having the same name. For instance I have html code that looks like this:
… followed by the same line
Note that I have two text fields with the same name and ID. I know this is bad. Is there a way to tell webrat to fill in the second occurance of a field with a certain name instead of the first one?
Has anybody tried this with the built in feature of Rails 2.3? (As I said, I used the approach suggested by Ryan in his Railscast)
Any ideas are greatly appreciated. I could imagine that this may be of general interest as more people will be using nested forms now that it is supported by Rails, so it may be worth including this in the book.