Topic: Customize Form Help

I'm kind of new to rails, as you'll find out with my query.

I've been reading quite a few books, but they are appear to take the "simple input to database" route.  I have a problem is more specific than this:

I need to store barcode numbers which are inputted with a range. I have a form which has 3 inputs: StartNo, FinishNo, Amount.

Basically if start is 11, and finish is 20, assuming amount is equal to 10(amount of barcodes to put inputted) 10 fields would be written to the database starting with barcode number 11 through to 20.

sorry if that's a bit confusing. As I said, my problem is I can only find help for automatic database entry (add users etc), and not for a customized query like this?

All help appreciated!