workflow:
$ rails g model NameOfModel
invoke active_record
create db/migrate/YYYYMMDDHHMMSS_create_name_of_models.rb
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
#!/usr/bin/env bash | |
uninstall() { | |
list=`gem list --no-versions` | |
for gem in $list; do | |
gem uninstall $gem -aIx | |
done | |
gem list | |
gem install bundler | |
} |
#homebrew > cask > Virtualbox > Vagrant > CentOS > Docker > Ubuntu | |
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
$ brew tap caskroom/homebrew-cask | |
$ brew install brew-cask | |
$ brew cask install virtualbox | |
$ brew cask install vagrant | |
$ brew tap homebrew/completions | |
$ brew install vagrant-completion |
With regard to this twitter conversation: | |
https://twitter.com/PericlesTheo/status/601745115074420736 | |
Hi Pericles, | |
This morning I took a quick look at how ActiveRecord converts the query result | |
back into Ruby objects. | |
Here’s where it happens: |
For apps built before the image_processing
gem became the default, the migration will involve two steps:
Before changing from ImageMagick to Vips, it's better to first test the new syntax and ensure everything is still working.
variant(format: :jpg, strip: true, quality: 80)