def create
climates = ["beachy", "very cold", "dry", "tundra", "rain forest", "north pole"]
destination = Destination.create {{name: Faker::Name.last_name + " Island", climate: climates.sample}}
redirect_to destinations_path
end
I want to have both an option for a user to create new data via their inputs, but I also want there to be an option for them to click "Random Destination" button and it will add Faker data.
Right now, this creates a new row in my Database, but it doesn't input the data.
using Postgres Db and ActiveRecord, for what it's worth.