Back to Parent

def get_gif

  searchName =  "disney " + " " + params[:Body].to_s
  results = Giphy.search( searchName, {limit: 10})
  gif = nil

  #puts results.to_yaml
  unless results.empty?
    gif = results.sample.fixed_width_downsampled_image.url.to_s
  end

  gif

end
Click to Expand

Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0