jhshaw44 / TechDatabase

A web service used to search a database containing information about BCPSS schools and other information pertinent to the Office of Media and Instructional Technology.
0 stars 0 forks source link

Retain collection_select option #10

Closed eburch2 closed 7 years ago

eburch2 commented 7 years ago

At the moment, every time a Search Group is selected in the combo box, it always resorts back to the default. I tried fixing this before by passing params[:select] in the 2nd arg but it ended up chaining endlessly. It needs to preserve the previous option much like the search bar retains the search string.

eburch2 commented 7 years ago

https://github.com/jhshaw44/TechDatabase/commit/ac2fded374186e27d9fe95eb999f454e04589586 https://github.com/jhshaw44/TechDatabase/commit/3d78c4046c0b3d963b93712cdc16c0f2ad95aa1a