melonhead901 / lab-specimen-transport-system

Automatically exported from code.google.com/p/lab-specimen-transport-system
0 stars 0 forks source link

Lookup should have item identifier in parameter #135

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Lookup an item.  It should redirect to a page where the identifier is specified 
(item/lookup/12345678 where 12345678 is an identifier).

Original issue reported on code.google.com by donovanh...@gmail.com on 27 May 2011 at 12:02

GoogleCodeExporter commented 8 years ago
This issue was closed by revision ec1ac3b559a3.

Original comment by donovanh...@gmail.com on 27 May 2011 at 3:02

GoogleCodeExporter commented 8 years ago
I couldn't get /items/lookup/1234ADBH to work, so I settled on using 
/items/lookup?q=1234ADBH (I figured time was better spent elsewhere).

Could you verify?

Original comment by donovanh...@gmail.com on 27 May 2011 at 3:03

GoogleCodeExporter commented 8 years ago
I'm getting a plus at the end?

Example:
http://localhost:3000/items/lookup?q=SDmcESO9t+

Original comment by liu.al...@gmail.com on 27 May 2011 at 4:15

GoogleCodeExporter commented 8 years ago
It looks like the "+" is caused by adding a trailing space in the text box 
(putting "12345678" has no "+" but putting "12345678 " adds a "+").

Do you agree with this conclusion?  Do you think we should fix it?

Original comment by donovanh...@gmail.com on 27 May 2011 at 8:39

GoogleCodeExporter commented 8 years ago
Yup, looks like thats what's causing it. I think leaving it is fine. Or you 
could use .chomp! or .trim! if you want, one of those might remove trailing 
whitespace, I forget.

Original comment by liu.al...@gmail.com on 27 May 2011 at 4:09

GoogleCodeExporter commented 8 years ago

Original comment by liu.al...@gmail.com on 27 May 2011 at 5:47