Started local stream, working but looks ugly
Stream divided into two. Searched stream and local stream
Tile count reduced to 90
Added tests for local stream. Suite is breaking now. Need to create pagination specifically for search and local streams and put order into the index page
Basically the dual stream page is working and paginates ok. However some tests are still breaking. Many more broke because the local search returned nil. I need to fix this by making the search helper smarter in the case that we are searching for noting to search for nil. The syntax needs to change to -SELECT * from Posts where published='t' and location is null-' For now just to have the tests pass i made a hack where if the local search is blank I return the full stream
Remove fluff
Conditional display of local posts, but not very DRY
block count is now sensitive to the number of boards on the index page. However, I didn't TDD this and there is currently a bug where when I change location such that now local_search is nil, local_posts doesn't update so I get too many blocks on the search board. Need to put in tests and clean this up by zeroing in @posts and @local_posts in the index action
Injected a name attribute into the tile to differentiate between local and search. Fixed all tests. Still have the same bug described yesterday, need to write a test for that and fix
Fixed pagination page size bug when there is a location and local posts
Finally fixed tile counting bug
Added failing tests for location LIKE matching. It should be fixed to match exactly
Search is smarter now to choose between LIKE queries and EQUAL queries. Fixed local stream to stream by exact location match