quattro_4 scribble

scribble 落書き (調べた事をただ落書きする)

Ruby5 #587

https://ruby5.codeschool.com/episodes/630-episode-587-september-29th-2015

  • Introducing Serial
    • Serial - lightweight serialization library
  • Rails 5: ActionController
    • params.to_h
  • gottfrois/link_thumbnailer
    • takes images from a given URL and generates thumbnail images
    • OpenGraph protocol
    • Find and sort images that best represent what the page
    • Find and rate description
  • gottfrois/image_info
    • generates image data, including height, width, size, and image type
# actionpack/lib/action_controller/metal/strong_parameters.rb
def to_h
  if permitted?
    @parameters.to_h
  else
    slice(*self.class.always_permitted_parameters).permit!.to_h
  end
end