Skip to content

Instantly share code, notes, and snippets.

@charliegerard
Last active August 29, 2015 13:57
Show Gist options
  • Save charliegerard/9776997 to your computer and use it in GitHub Desktop.
Save charliegerard/9776997 to your computer and use it in GitHub Desktop.

#Day 23

###Nokogiri web scraping

Code climate

require 'open-uri' in rails console

doc = Nokogiri::HTML('http://www.pinterest.com/search/pins/?q=pug')

doc.css('img')

doc.css('img').map {|i| i.get_attribute('src')}

Action Mailer => Send emails from website

http://guides.rubyonrails.org/action_mailer_basics.html

heroku login enter heroku logins

when working on branches:

when changes done, git add, git commmit. Then git checkout master git status git merge 'name of branch' git branch -D 'name of branch'

Carrierwave tutorial : https://gist.github.com/mathildathompson/9719582

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment