Show random restaurant name with a click of a button
Hi! So I just finished the Yelp course and I am trying to build one with a little tweak.
Here is my halfway done app
I managed to add a spinning wheel, but what I would like to ask is, what should I do so that when I click the spin button, the restaurant info on top of the wheel will shuffle and return a random restaurant name from the db list?
I tried to google search and got this gem install
but isn't sure how to actually implement it.
Thanks in advance!
Posted almost 5 years ago by