I just got this working. I had to adjust the variable localhost to my server's ip address in both the application.html.erb (layout) file and the application.js file.
Not sure if you are still having an issue, but jerclark solved this (search this page for "mobile" instead of "iPhone". I missed it for a month):
I resolved it by changing the server property in config/private_pub.yml from "localhost" to my dev server IP address.
You'll need to change it to something that your mobile device can access. Also, if you manually included the private_pub javascript using a javascript_include_tag with an absolute URL to localhost, you'll probably want to change it there as well.
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.
I just got this working. I had to adjust the variable
localhost
to my server's ip address in both theapplication.html.erb
(layout) file and theapplication.js
file.Not sure if you are still having an issue, but jerclark solved this (search this page for "mobile" instead of "iPhone". I missed it for a month):
@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 tocalendar
marked as nondisplaying code, but had it the other way initially.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
But when I go to run
I get a
sudo: gem: command not found
error.If I
exit
the deployer session andsu deployer
from root, I get this error:/home/deployer/.rbenv/bin/rbenv: line 20: cd: /root: Permission denied
Then running
ruby -v
gives me this errorbash: ruby: command not found
when previously that worked for deployer.Any ideas what I'm doing wrong?