$ rvm get stable --autolibs=enable # upgrades to latest stable version
$ rvm list known # list all known ruby versions
$ rvm install 2.4.1 # install latest ruby version
$ rvm use --default 2.4.1
- Деплоим приложение как обычно с помощью Capistrano
- Настраиваем доменное имя на digitalocean, туториал
- Добавляем строку в файле
/home/etc/hostsс доменным именем
# /home/etc/hosts
...
127.0.0.1 pinshop.com.ua www.pinshop.com.ua
...
Please don't put MailCatcher in your Gemfile. It is an application in its own right with its own dependencies that can't possibly interoperates with every version of rails. Simply:
gem install mailcatcher
mailcatcher
and it will be accessible at http://127.0.0.1:1080/
- Add
remote: trueoption to link, button or form
# app/views/products/show.html.haml
button_to 'Add to Cart', line_items_path(product_id: product), remote: true
- Stop the create action from redirecting to the index display if the request is for JavaScript. We do this by adding a call to
respond_to()telling it that we want to respond with a format of .js:
You were working on a certain branch of a git repository, and you committed some changes to it. Then you realize, this particular commit should also go to another branch of the repository BUT you are not ready for a complete merge. Maybe this commit was meant for the other branch?
You want to merge this particular commit from the current branch to the other branch of your requirement.
NewerOlder