ransack search

Hi, how would I detect if the search form button has been submitted? I have the search results returned in the index ok, but I like to conditionally show the number of records only when the button has been pressed.

Thanks,

Joe

Ok, I figured it out.

https://stackoverflow.com/questions/33601480/determine-which-submit-button-clicked-when-they-have-same-name