Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: workmaster2n
@tatumszymczak Were you able to get this working? I've got the same problem. Thinking it may be related to mobile browsers
Just in case anyone misreads this as I did, "I've found the after_touch method a good place to clear the cache as well" as in I found I need to use both after_commit and after_touch.
Great find on the after_touch callback!
after_commit doesn't get called if you are just touching the record, ie have nested caches that get invalidated through touching.
I'm using haml and had to change the call to calendar to be of the display format (I had to do = calendar do |date| instead of - calendar do |date|). Is this expected? Ryan had the call to calendar marked as nondisplaying code, but had it the other way initially.
= calendar do |date|
- calendar do |date|
I'm trying to use Passenger and have now twice hosed my install.
I can successfully complete this line of the script in the show notes
curl -L https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
vim .bashrc # add rbenv to the top
rbenv install 1.9.3-p125
rbenv global 1.9.3-p125
gem install bundler --no-ri --no-rdoc
But when I go to run
# Phusion Passenger (instead of Unicorn)
sudo apt-get -y install libcurl4-openssl-dev apache2-prefork-dev libapr1-dev libaprutil1-dev
sudo gem install passenger --no-ri --no-rdoc
sudo vim /etc/apache2/apache2.conf # modify as instructed by installer
I get a sudo: gem: command not found error.
sudo: gem: command not found
If I exit the deployer session and su deployer from root, I get this error: /home/deployer/.rbenv/bin/rbenv: line 20: cd: /root: Permission denied
/home/deployer/.rbenv/bin/rbenv: line 20: cd: /root: Permission denied
Then running ruby -v gives me this error bash: ruby: command not found when previously that worked for deployer.
bash: ruby: command not found
Any ideas what I'm doing wrong?