I think the way I had it before was more of a hack and not using the rails path.  I could use some input from you guys on which one would be better to use.  Either line 5 or lines 7-9