Created
August 18, 2010 19:11
-
-
Save bishopandco/535825 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@tn = params[:tn][:tracking_number] | |
@tns = @tn.split(',') | |
if @tns.count >= 2 | |
@tns.each do |tn| | |
@tracking_number = TrackingNumber.new | |
@tracking_number.tracking_number = tn | |
@tracking_number.order_id = @order.id | |
@tracking_number.save | |
count +=1 | |
end | |
else | |
@tracking_number = TrackingNumber.new | |
@tracking_number.tracking_number = params[:tn][:tracking_number] | |
@tracking_number.order_id = @order.id | |
@tracking_number.save | |
count +=1 | |
end |
Author
bishopandco
commented
Aug 18, 2010
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment