Excellent video, as usual brother. I just have one doubt: instead of an empty array how can I render a simple paragraph with an error message when the search produces no results? I tried fidgeting with the code but couldn't do it. Can you help? ):
@MalachiRails7 ай бұрын
Yeah it should be simple enough. Just check search_results count == 0 Then throw an error as the notice variable. This is pretty easy to implement. In fact, you may find my mentorship program useful too. www.patreon.com/user?u=89485299&
@Veneris967 ай бұрын
@@MalachiRails yes, well, I still can't figure it out for the life of me. sad.