Open GoogleCodeExporter opened 9 years ago
As far as I can tell, this is still a problem. Sure, it's a problem only if
you're data is ugly, but that's a problem, too. I just pushed a commit to my
Bibapp fork that replaces the SQL condition I suggested earlier with a change
in publications_controller.rb:
https://github.com/jstirnaman/BibApp/commit/503c7a0fc30559461860e153a3c59601da52
d44a
Using LENGTH() in the letters method seemed too database-dependent and I
couldn't come up with a better ActiveRecord way.
What I'm wondering is whether the database or the model shouldn't be allowing
empty or whitespace values as Publication name. We've had names that are
zero-length strings, spaces, and tabs. The zero-length string is the one that
causes all records to be returned in @current_objects.
Jason
Original comment by stirnam...@gmail.com
on 3 Mar 2011 at 4:53
https://github.com/jstirnaman/BibApp/commits/person_is_active_1.0
Original comment by stirnam...@gmail.com
on 7 Mar 2011 at 6:15
Original issue reported on code.google.com by
stirnam...@gmail.com
on 21 Sep 2010 at 7:51