rack-pjax working in development but not production - ruby-on-rails

So I recently installed rack-pjax in my app to make it and so some sidebars wouldn't reload on navigation, and I got it working in development, but when I pushed it up to heroku, for some reason, it didn't work.
If I navigate to, say, "/music", it reloads the entire page, with the URL going from "/music" to "/music#" and back to "/music".
Edit {
In the heroku logs, you can see it sends the GET request twice, which explains the discrepancy in the URL. If the second GET request didn't happen, it should work.
}
Here's my log of me doing it in development:
J-Laptop:pregun joeshoulak$ rails s
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8
=> Booting Thin
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
>> Thin web server (v1.5.1 codename Straight Razor)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop
Started GET "/" for 127.0.0.1 at 2013-07-11 18:15:31 -0500
Processing by StaticPagesController#home as HTML
Rendered static_pages/home.html.erb within layouts/application (15.1ms)
Compiled static_pages.js (604ms) (pid 33288)
Compiled application.js (7ms) (pid 33288)
Rendered layouts/_header.html.erb (1115.5ms)
Rendered layouts/_subscribe.html.erb (440.1ms)
Rendered layouts/_soundcloud.html.erb (0.4ms)
Rendered layouts/_tweet-stream.html.erb (0.4ms)
Rendered layouts/_footer.html.erb (0.4ms)
Rendered layouts/_google_analytics.html.erb (0.5ms)
Completed 200 OK in 1719ms (Views: 1718.8ms | ActiveRecord: 0.0ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /application.css - 304 Not Modified (11ms)
Started GET "/assets/jquery.fancybox.css?body=1" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /jquery.fancybox.css - 304 Not Modified (3ms)
Started GET "/assets/fancybox.css?body=1" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /fancybox.css - 304 Not Modified (4ms)
Started GET "/assets/email.css?body=1" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /email.css - 304 Not Modified (1ms)
Started GET "/assets/forms.css?body=1" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /forms.css - 304 Not Modified (1ms)
Started GET "/assets/static_pages.css?body=1" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /static_pages.css - 304 Not Modified (5ms)
Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /users.css - 304 Not Modified (3ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /jquery.js - 304 Not Modified (3ms)
Started GET "/assets/jquery.browser.js?body=1" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /jquery.browser.js - 304 Not Modified (2ms)
Started GET "/assets/jquery.fancybox.js?body=1" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /jquery.fancybox.js - 304 Not Modified (2ms)
Started GET "/assets/fancybox.js?body=1" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /fancybox.js - 304 Not Modified (4ms)
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /jquery_ujs.js - 304 Not Modified (26ms)
Started GET "/assets/jquery.pjax.js?body=1" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /jquery.pjax.js - 304 Not Modified (1ms)
Started GET "/assets/email.js?body=1" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /email.js - 304 Not Modified (2ms)
Started GET "/assets/fonts.js?body=1" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /fonts.js - 304 Not Modified (1ms)
Started GET "/assets/static_pages.js?body=1" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /static_pages.js - 304 Not Modified (2ms)
Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /users.js - 304 Not Modified (2ms)
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /application.js - 304 Not Modified (13ms)
Started GET "/assets/photos/small/on-stage.jpg" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /photos/small/on-stage.jpg - 304 Not Modified (18ms)
Started GET "/assets/photos/small/model.jpg" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /photos/small/model.jpg - 304 Not Modified (60ms)
Started GET "/assets/wood-tile.jpg" for 127.0.0.1 at 2013-07-11 18:15:33 -0500
Served asset /wood-tile.jpg - 304 Not Modified (21ms)
Started GET "/music?_pjax=%5Bdata-pjax-container%5D" for 127.0.0.1 at 2013-07-11 18:15:44 -0500
Processing by StaticPagesController#music as HTML
Parameters: {"_pjax"=>"[data-pjax-container]"}
Rendered static_pages/music.html.erb within layouts/application (1.0ms)
Rendered layouts/_header.html.erb (58.6ms)
Rendered layouts/_subscribe.html.erb (5.1ms)
Rendered layouts/_soundcloud.html.erb (0.1ms)
Rendered layouts/_tweet-stream.html.erb (0.1ms)
Rendered layouts/_footer.html.erb (0.1ms)
Rendered layouts/_google_analytics.html.erb (0.1ms)
Completed 200 OK in 194ms (Views: 193.9ms | ActiveRecord: 0.0ms)
Started GET "/assets/photos/small/on-stage.jpg" for 127.0.0.1 at 2013-07-11 18:15:44 -0500
Served asset /photos/small/on-stage.jpg - 304 Not Modified (0ms)
Started GET "/assets/photos/small/model.jpg" for 127.0.0.1 at 2013-07-11 18:15:44 -0500
Served asset /photos/small/model.jpg - 304 Not Modified (0ms)
Started GET "/assets/albums/accident.jpg" for 127.0.0.1 at 2013-07-11 18:15:44 -0500
Served asset /albums/accident.jpg - 304 Not Modified (29ms)
Started GET "/assets/albums/forever.jpg" for 127.0.0.1 at 2013-07-11 18:15:44 -0500
Served asset /albums/forever.jpg - 304 Not Modified (48ms)
Started GET "/assets/albums/green.jpg" for 127.0.0.1 at 2013-07-11 18:15:44 -0500
Served asset /albums/green.jpg - 304 Not Modified (1ms)
Started GET "/assets/albums/recluse.jpg" for 127.0.0.1 at 2013-07-11 18:15:44 -0500
Served asset /albums/recluse.jpg - 304 Not Modified (1ms)
Started GET "/assets/albums/gone.jpg" for 127.0.0.1 at 2013-07-11 18:15:44 -0500
Served asset /albums/gone.jpg - 304 Not Modified (43ms)
And here's my Heroku log when I try the same thing in production.
2013-07-11T23:18:51.945015+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 6327`
2013-07-11T23:18:58.952314+00:00 app[web.1]: WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.6
2013-07-11T23:18:59.160588+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-07-11T23:18:59.160588+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-07-11T23:19:03.265277+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2013-07-11T23:19:04.697633+00:00 app[web.1]: >> Maximum connections set to 1024
2013-07-11T23:19:04.697633+00:00 app[web.1]: >> Thin web server (v1.5.1 codename Straight Razor)
2013-07-11T23:19:04.697633+00:00 app[web.1]: >> Listening on 0.0.0.0:6327, CTRL+C to stop
2013-07-11T23:19:05.032735+00:00 heroku[web.1]: State changed from starting to up
2013-07-11T23:19:07.649643+00:00 app[web.1]: Started GET "/" for 65.103.31.9 at 2013-07-11 23:19:07 +0000
2013-07-11T23:19:07.751857+00:00 app[web.1]: Processing by StaticPagesController#home as HTML
2013-07-11T23:19:07.819355+00:00 app[web.1]: Rendered layouts/_header.html.erb (2.5ms)
2013-07-11T23:19:07.810610+00:00 app[web.1]: Rendered static_pages/home.html.erb within layouts/application (5.1ms)
2013-07-11T23:19:08.128110+00:00 heroku[router]: at=info method=GET path=/ host=www.prestongunderson.com fwd="65.103.31.9" dyno=web.1 connect=1ms service=439ms status=304 bytes=0
2013-07-11T23:19:08.079075+00:00 app[web.1]: Rendered layouts/_tweet-stream.html.erb (0.2ms)
2013-07-11T23:19:08.078419+00:00 app[web.1]: Rendered layouts/_soundcloud.html.erb (0.6ms)
2013-07-11T23:19:08.079684+00:00 app[web.1]: Rendered layouts/_footer.html.erb (0.2ms)
2013-07-11T23:19:08.080610+00:00 app[web.1]: Completed 200 OK in 329ms (Views: 328.3ms | ActiveRecord: 0.0ms)
2013-07-11T23:19:08.077263+00:00 app[web.1]: Rendered layouts/_subscribe.html.erb (257.2ms)
2013-07-11T23:19:08.080442+00:00 app[web.1]: Rendered layouts/_google_analytics.html.erb (0.4ms)
2013-07-11T23:19:09.490768+00:00 heroku[router]: at=info method=GET path=/assets/application-e4de29223b008b9aab08de9e9baf133e.css host=www.prestongunderson.com fwd="65.103.31.9" dyno=web.1 connect=3ms service=8ms status=304 bytes=0
2013-07-11T23:19:10.865673+00:00 heroku[router]: at=info method=GET path=/assets/application-4502e11f3b6bc00a0e152e2b246a1548.js host=www.prestongunderson.com fwd="65.103.31.9" dyno=web.1 connect=1ms service=5ms status=304 bytes=0
2013-07-11T23:19:12.729769+00:00 heroku[router]: at=info method=GET path=/assets/photos/small/model.jpg host=www.prestongunderson.com fwd="65.103.31.9" dyno=web.1 connect=1ms service=583ms status=304 bytes=0
2013-07-11T23:19:12.731088+00:00 heroku[router]: at=info method=GET path=/assets/photos/small/on-stage.jpg host=www.prestongunderson.com fwd="65.103.31.9" dyno=web.1 connect=1ms service=592ms status=304 bytes=0
2013-07-11T23:19:13.259316+00:00 heroku[router]: at=info method=GET path=/assets/wood-tile.jpg host=www.prestongunderson.com fwd="65.103.31.9" dyno=web.1 connect=1ms service=8ms status=304 bytes=0
2013-07-11T23:19:27.016512+00:00 app[web.1]: Started GET "/music?_pjax=%5Bdata-pjax-container%5D" for 65.103.31.9 at 2013-07-11 23:19:27 +0000
2013-07-11T23:19:27.099811+00:00 app[web.1]: Processing by StaticPagesController#music as HTML
2013-07-11T23:19:27.114816+00:00 app[web.1]: Rendered layouts/_subscribe.html.erb (2.5ms)
2013-07-11T23:19:27.112042+00:00 app[web.1]: Rendered layouts/_header.html.erb (1.2ms)
2013-07-11T23:19:27.115623+00:00 app[web.1]: Rendered layouts/_tweet-stream.html.erb (0.0ms)
2013-07-11T23:19:27.115386+00:00 app[web.1]: Rendered layouts/_soundcloud.html.erb (0.0ms)
2013-07-11T23:19:27.110545+00:00 app[web.1]: Rendered static_pages/music.html.erb within layouts/application (1.1ms)
2013-07-11T23:19:27.106652+00:00 app[web.1]: Parameters: {"_pjax"=>"[data-pjax-container]"}
2013-07-11T23:19:27.141265+00:00 app[web.1]: Rendered layouts/_google_analytics.html.erb (0.0ms)
2013-07-11T23:19:27.155659+00:00 heroku[router]: at=info method=GET path=/music?_pjax=%5Bdata-pjax-container%5D host=www.prestongunderson.com fwd="65.103.31.9" dyno=web.1 connect=1ms service=141ms status=200 bytes=1194
2013-07-11T23:19:27.141265+00:00 app[web.1]: Completed 200 OK in 32ms (Views: 31.0ms | ActiveRecord: 0.0ms)
2013-07-11T23:19:27.141265+00:00 app[web.1]: Rendered layouts/_footer.html.erb (0.0ms)
2013-07-11T23:19:27.663407+00:00 app[web.1]: Processing by StaticPagesController#music as HTML
2013-07-11T23:19:27.660457+00:00 app[web.1]: Started GET "/music" for 65.103.31.9 at 2013-07-11 23:19:27 +0000
2013-07-11T23:19:27.678623+00:00 heroku[router]: at=info method=GET path=/music host=www.prestongunderson.com fwd="65.103.31.9" dyno=web.1 connect=1ms service=13ms status=304 bytes=0
2013-07-11T23:19:27.667604+00:00 app[web.1]: Rendered layouts/_header.html.erb (1.8ms)
2013-07-11T23:19:27.669287+00:00 app[web.1]: Rendered layouts/_soundcloud.html.erb (0.0ms)
2013-07-11T23:19:27.669121+00:00 app[web.1]: Rendered layouts/_subscribe.html.erb (1.3ms)
2013-07-11T23:19:27.669450+00:00 app[web.1]: Rendered layouts/_tweet-stream.html.erb (0.0ms)
2013-07-11T23:19:27.669992+00:00 app[web.1]: Completed 200 OK in 6ms (Views: 6.3ms | ActiveRecord: 0.0ms)
2013-07-11T23:19:27.665544+00:00 app[web.1]: Rendered static_pages/music.html.erb within layouts/application (1.3ms)
2013-07-11T23:19:27.669773+00:00 app[web.1]: Rendered layouts/_google_analytics.html.erb (0.0ms)
2013-07-11T23:19:27.669617+00:00 app[web.1]: Rendered layouts/_footer.html.erb (0.0ms)
2013-07-11T23:19:29.241509+00:00 heroku[router]: at=info method=GET path=/assets/albums/forever.jpg host=www.prestongunderson.com fwd="65.103.31.9" dyno=web.1 connect=1ms service=4ms status=304 bytes=0
2013-07-11T23:19:30.839296+00:00 heroku[router]: at=info method=GET path=/assets/albums/green.jpg host=www.prestongunderson.com fwd="65.103.31.9" dyno=web.1 connect=2ms service=3ms status=304 bytes=0
2013-07-11T23:19:30.843345+00:00 heroku[router]: at=info method=GET path=/assets/albums/recluse.jpg host=www.prestongunderson.com fwd="65.103.31.9" dyno=web.1 connect=1ms service=3ms status=304 bytes=0
2013-07-11T23:19:30.853211+00:00 heroku[router]: at=info method=GET path=/assets/albums/gone.jpg host=www.prestongunderson.com fwd="65.103.31.9" dyno=web.1 connect=1ms service=3ms status=304 bytes=0
2013-07-11T23:19:29.237902+00:00 heroku[router]: at=info method=GET path=/assets/albums/accident.jpg host=www.prestongunderson.com fwd="65.103.31.9" dyno=web.1 connect=1ms service=4ms status=304 bytes=0
Here are the relevant files to pjax:
/config/application.rb:
require File.expand_path('../boot', __FILE__)
require 'rails/all'
if defined?(Bundler)
Bundler.require(*Rails.groups(:assets => %w(development test)))
end
module Prestongunderson
class Application < Rails::Application
config.middleware.use Rack::Pjax
config.encoding = "utf-8"
config.filter_parameters += [:password]
config.active_support.escape_html_entities_in_json = true
config.active_record.whitelist_attributes = true
config.assets.enabled = true
config.assets.version = '1.0'
end
end
/assets/javascripts/application.js
//= require jquery
//= require fancybox
//= require jquery_ujs
//= require jquery.pjax
//= require_tree .
/assets/javascripts/static_pages.js.coffee
$(document).ready ->
jQuery ->
$("a.fancybox").fancybox()
jQuery ->
$(document).pjax('a.local-nav', '[data-pjax-container]')
/app/views/layouts/application.html.erb
<!DOCTYPE html>
<html>
<%= render 'layouts/header' %>
<%= render 'layouts/subscribe' %>
<%= render 'layouts/soundcloud' %>
<%= render 'layouts/tweet-stream' %>
<body>
<div data-pjax-container>
<%= yield %>
</div>
<%= render 'layouts/footer' %>
<%= render 'layouts/google_analytics' %>
</body>
</html>
/app/views/layouts/_header.html.erb
<head>
<% #title = yield(:title) %>
<title>Preston Gunderson | <%= #title %></title>
<%= stylesheet_link_tag 'http://fonts.googleapis.com/css?family=Fauna+One|Mr+Bedfort|Milonga' %>
<%= stylesheet_link_tag 'application', :media => 'all' %>
<%= javascript_include_tag 'application' %>
<%= csrf_meta_tags %>
</head>
<% if flash[:notice] %>
<div class='alert'><%= flash[:notice] %></div>
<style>
#subscribe, #soundcloud {
top: 60px;
}
#tweet-stream {
top: 200px;
}
</style>
<% end %>
<nav class='center border'>
<ul>
<% ['Home', 'Bio', 'Gallery', 'Music', 'Tour', 'Videos', 'Contact'].each do |page| %>
<li><%= link_to( page.upcase, "/#{page.downcase}", class: 'local-nav') %></li>
<% end %>
<li><%= link_to( 'MERCH', 'https://prestongunderson.bigcartel.com') %></li>
</ul>
</nav>
<header class='center border' id='head-box'>
<p id='supertitle'>The official site of Singer Songwriter</p>
<h1>Preston Gunderson</h1>
</header>
/gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.13'
gem 'bootstrap-sass', '2.1'
gem 'simple_form'
gem 'rspec'
gem 'pg'
gem 'jquery-rails'
gem 'fancybox-rails'
gem 'thin'
gem 'rack-pjax'
group :development, :test do
gem 'sqlite3'
end
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end

Before you call pjax, try adding this to your JavaScript:
$(document).on('pjax:timeout', function() {
return false;
});
This will disable the timeout. I had this exact same problem and the issue was that my app was too slow, and was taking too long to load, and pjax would cancel the request and send the browser on. You can of course increase the timeout but I thought this was nicer.

Related

wkhtmltopdf rendering twice?

I'm using wicked_pdf, working fine. However, the server seems to render/execute wicked twice for only one call, resulting in one pdf-file. Can anyone tell me why? The server log looks like this:
2016-03-16T21:53:11.659341+00:00 app[web.1]: Started GET "/wpdf" for 99.99.99.99 at 2016-03-16 21:53:11 +0000
2016-03-16T21:53:11.661184+00:00 app[web.1]: Processing by SomeStoriesController#wpdf as HTML
2016-03-16T21:53:11.661632+00:00 app[web.1]: ***************WICKED***************
2016-03-16T21:53:11.663620+00:00 app[web.1]: Rendered some_stories/wpdf.html.erb (1.1ms)
2016-03-16T21:53:13.128754+00:00 heroku[router]: at=info method=GET path="/wpdf" host=xxxx.herokuapp.com request_id=3ca3a32a-2c40-4052-b7fb-8d333b7277c6 fwd="99.99.99" dyno=web.1 connect=0ms service=1477ms status=200 bytes=18490
2016-03-16T21:53:13.132369+00:00 app[web.1]: Rendered text template (0.0ms)
2016-03-16T21:53:13.132480+00:00 app[web.1]: Sent data file_name.pdf (0.5ms)
2016-03-16T21:53:13.132673+00:00 app[web.1]: Completed 200 OK in 1471ms (Views: 0.4ms | ActiveRecord: 0.0ms)
2016-03-16T21:53:13.362617+00:00 app[web.1]: Started GET "/wpdf" for 99.99.99.99 at 2016-03-16 21:53:13 +0000
2016-03-16T21:53:13.363827+00:00 app[web.1]: Processing by SomeStoriesController#wpdf as HTML
2016-03-16T21:53:13.364250+00:00 app[web.1]: ***************WICKED***************
2016-03-16T21:53:13.365987+00:00 app[web.1]: Rendered some_stories/wpdf.html.erb (1.1ms)
2016-03-16T21:53:14.468550+00:00 heroku[router]: at=info method=GET path="/wpdf" host=xxxx.herokuapp.com request_id=5b70cf38-bc29-45fd-8287-3a01b0b1372a fwd="99.99.99.99" dyno=web.1 connect=0ms service=1114ms status=200 bytes=18490
2016-03-16T21:53:14.472015+00:00 app[web.1]: Rendered text template (0.0ms)
2016-03-16T21:53:14.472110+00:00 app[web.1]: Sent data file_name.pdf (0.4ms)
2016-03-16T21:53:14.472271+00:00 app[web.1]: Completed 200 OK in 1108ms (Views: 0.3ms | ActiveRecord: 0.0ms)
I am also experiencing the same issue. It is only occurring in Chrome and is not happening in Firefox or IE.
Looks like a bug in Chrome - Chrome sends two requests when downloading a PDF (and cancels one of them)
Looks like it will be fixed in v54 of Chrome.

Can someone help me understand why data is not being seeded to Heroku?

I really need to deploy data to my heroku app but I don't understand why it's not working. I've read the documentation and I have seeded my database in the seeds.rb file like so:
user = User.create(band_name: "The Rubies", email: "therubies#gmail.com", user_name: "therubies1000", password: "password", password_confirmation: "password")
MusicVideo.create([
{song_title: "Ruby Gems"
venue: "The Gypsy Lounge"
location: "Boston"
description: "First time in Boston"
url_id: "http://vimeo.com/75032263"
name: "hiphop"
user: user},
{song_title: "Ruby Blood Love"
venue: "The Masquerade"
location: "Atlanta"
description: "5th circuit tour at the Masquerade"
url_id: "http://vimeo.com/28020056"
name: "alternative"
user: user},
{song_title: "Ruby vs. Python"
venue: "Launch Academy"
location: "Boston"
description: "A love song about Ruby"
url_id: "http://vimeo.com/67825649"
name: "hiphop"
user: user},
{song_title: "Farewell Launch Academy"
venue: "Los Locos Tavern"
location: "New York City"
description: "My heartfelt farewell balad for Launch Academy"
url_id: "http://vimeo.com/60347451"
name: "country"
user: user},
{song_title: "Solar Molecules"
venue: "Miami Central"
location: "Miami"
description: "Our band's first single"
url_id: "http://vimeo.com/61605196"
name: "pop"
user: user},
{song_title: "Lovely Miss Ruby!"
venue: "2120 nightclub"
location: "Boston"
description: "The song that made us famous"
url_id: "http://vimeo.com/68269314"
name: "pop"
user: user},
{song_title: "Lady Ruby vs. Lady Python"
venue: "Longhorn Bar & Grill"
location: "Austin"
description: "Battle of the bands 2012"
url_id: "http://vimeo.com/71137905"
name: "rock"
user: user},
{song_title: "The Seductress: Rails"
venue: "Igloo Bar"
location: "Denver"
description: "The crowd goes nuts at 2:14"
url_id: "http://vimeo.com/70360517"
name: "hiphop"
user: user}
])
Then I've run the heroku rake db:migrate and then heroku rake db:seed as demonstrated in the rails app project website. I'd try to troubleshoot this but I don't know where to start or how to begin. These commands should work. I could really use some help with this.
----EDIT-----
When I use the two rake commands, I don't receive an error at all. I get this:
➜ musikfish git:(master) ✗ heroku run rake db:migrate
Running `rake db:migrate` attached to terminal... up, run.8472
➜ musikfish git:(master) ✗ heroku run rake db:seed
Running `rake db:seed` attached to terminal... up, run.9065
The problem is that when I go to my heroku app, nothing is there.
musikfish git:(master) ✗ heroku logs
2014-04-29T01:27:43.662686+00:00 heroku[run.9065]: Starting process with command `bundle exec rake db:seed`
2014-04-29T01:27:43.446432+00:00 heroku[run.9065]: State changed from starting to up
2014-04-29T01:27:48.599137+00:00 heroku[run.9065]: Process exited with status 0
2014-04-29T01:27:48.615271+00:00 heroku[run.9065]: State changed from up to complete
2014-04-29T01:27:59.356149+00:00 heroku[router]: at=info method=GET path=/ host=musikfish.herokuapp.com request_id=9198db15-ceb6-47d0-bf5c-9c0c8f86ed00 fwd="76.19.195.114" dyno=web.1 connect=13ms service=26ms status=304 bytes=963
2014-04-29T01:27:59.437007+00:00 heroku[router]: at=info method=GET path=/assets/vendor/modernizr-aee7c485b9900b5743cd0108ba6c4203.js host=musikfish.herokuapp.com request_id=8fff456c-414b-44d5-9745-c287e21ae29f fwd="76.19.195.114" dyno=web.1 connect=0ms service=4ms status=304 bytes=133
2014-04-29T01:27:59.447087+00:00 heroku[router]: at=info method=GET path=/assets/application-35b8d7e622749de25608aa28d2dab9bf.css host=musikfish.herokuapp.com request_id=5b704bcd-11c5-445e-a3a4-3b5a9771b162 fwd="76.19.195.114" dyno=web.1 connect=0ms service=6ms status=304 bytes=133
2014-04-29T01:27:59.452743+00:00 heroku[router]: at=info method=GET path=/assets/application-f22c7c9cfd4209f8467d10162777b447.js host=musikfish.herokuapp.com request_id=99c37dd8-c9e7-414d-833c-b2355a0a7d78 fwd="76.19.195.114" dyno=web.1 connect=1ms service=6ms status=304 bytes=133
2014-04-29T01:27:59.339867+00:00 app[web.1]: Started GET "/" for 76.19.195.114 at 2014-04-29 01:27:59 +0000
2014-04-29T01:27:59.339876+00:00 app[web.1]: Started GET "/" for 76.19.195.114 at 2014-04-29 01:27:59 +0000
2014-04-29T01:27:59.342081+00:00 app[web.1]: Processing by MusicVideosController#index as HTML
2014-04-29T01:27:59.350172+00:00 app[web.1]: Rendered music_videos/index.html.erb within layouts/application (4.2ms)
2014-04-29T01:27:59.350164+00:00 app[web.1]: Rendered music_videos/index.html.erb within layouts/application (4.2ms)
2014-04-29T01:27:59.342088+00:00 app[web.1]: Processing by MusicVideosController#index as HTML
2014-04-29T01:27:59.351185+00:00 app[web.1]: Completed 200 OK in 9ms (Views: 4.4ms | ActiveRecord: 2.3ms)
2014-04-29T01:27:59.351191+00:00 app[web.1]: Completed 200 OK in 9ms (Views: 4.4ms | ActiveRecord: 2.3ms)
2014-04-29T01:27:59.707282+00:00 heroku[router]: at=info method=GET path=/assets/concert-fa42c0b37cf58a39f5c756d58acc0cff.jpg host=musikfish.herokuapp.com request_id=e62134aa-1020-4402-b507-e90f4cb2c2fa fwd="76.19.195.114" dyno=web.1 connect=1ms service=4ms status=304 bytes=133
2014-04-29T01:28:01.827756+00:00 heroku[router]: at=info method=POST path=/users/sign_out host=musikfish.herokuapp.com request_id=ba2049ed-925a-419f-8d8f-703025441667 fwd="76.19.195.114" dyno=web.1 connect=1ms service=31ms status=302 bytes=1008
2014-04-29T01:28:01.933934+00:00 heroku[router]: at=info method=GET path=/ host=musikfish.herokuapp.com request_id=82444cc8-b75c-4f81-a5b7-a0c4dbebae00 fwd="76.19.195.114" dyno=web.1 connect=2ms service=11ms status=302 bytes=1174
2014-04-29T01:28:02.019241+00:00 heroku[router]: at=info method=GET path=/users/sign_in host=musikfish.herokuapp.com request_id=ff98915d-2970-4369-81c4-b3335cf6fb50 fwd="76.19.195.114" dyno=web.1 connect=1ms service=24ms status=200 bytes=5117
2014-04-29T01:28:01.815374+00:00 app[web.1]: Parameters: {"authenticity_token"=>"6U9MH33BoyP3riIQVH9xRUG/jTGHDbDc9haqkb1wm+c="}
2014-04-29T01:28:01.812383+00:00 app[web.1]: Started DELETE "/users/sign_out" for 76.19.195.114 at 2014-04-29 01:28:01 +0000
2014-04-29T01:28:01.812441+00:00 app[web.1]: Started DELETE "/users/sign_out" for 76.19.195.114 at 2014-04-29 01:28:01 +0000
2014-04-29T01:28:01.836620+00:00 app[web.1]: Redirected to http://musikfish.herokuapp.com/
2014-04-29T01:28:01.815244+00:00 app[web.1]: Processing by Devise::SessionsController#destroy as HTML
2014-04-29T01:28:01.815318+00:00 app[web.1]: Processing by Devise::SessionsController#destroy as HTML
2014-04-29T01:28:01.836976+00:00 app[web.1]: Completed 302 Found in 21ms (ActiveRecord: 4.7ms)
2014-04-29T01:28:01.815409+00:00 app[web.1]: Parameters: {"authenticity_token"=>"6U9MH33BoyP3riIQVH9xRUG/jTGHDbDc9haqkb1wm+c="}
2014-04-29T01:28:01.836730+00:00 app[web.1]: Redirected to http://musikfish.herokuapp.com/
2014-04-29T01:28:01.837036+00:00 app[web.1]: Completed 302 Found in 21ms (ActiveRecord: 4.7ms)
2014-04-29T01:28:01.931057+00:00 app[web.1]: Started GET "/" for 76.19.195.114 at 2014-04-29 01:28:01 +0000
2014-04-29T01:28:01.931067+00:00 app[web.1]: Started GET "/" for 76.19.195.114 at 2014-04-29 01:28:01 +0000
2014-04-29T01:28:01.933233+00:00 app[web.1]: Processing by MusicVideosController#index as HTML
2014-04-29T01:28:01.933240+00:00 app[web.1]: Processing by MusicVideosController#index as HTML
2014-04-29T01:28:01.934294+00:00 app[web.1]: Completed 401 Unauthorized in 1ms
2014-04-29T01:28:01.934300+00:00 app[web.1]: Completed 401 Unauthorized in 1ms
2014-04-29T01:28:02.003346+00:00 app[web.1]: Started GET "/users/sign_in" for 76.19.195.114 at 2014-04-29 01:28:02 +0000
2014-04-29T01:28:02.003359+00:00 app[web.1]: Started GET "/users/sign_in" for 76.19.195.114 at 2014-04-29 01:28:02 +0000
2014-04-29T01:28:02.005391+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2014-04-29T01:28:02.005397+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2014-04-29T01:28:02.016010+00:00 app[web.1]: Rendered devise/sessions/new.html.erb within layouts/application (8.1ms)
2014-04-29T01:28:02.016022+00:00 app[web.1]: Rendered devise/sessions/new.html.erb within layouts/application (8.1ms)
2014-04-29T01:28:02.016885+00:00 app[web.1]: Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.0ms)
2014-04-29T01:28:02.016891+00:00 app[web.1]: Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.0ms)
2014-04-29T01:28:02.165810+00:00 heroku[router]: at=info method=GET path=/assets/record-b8785487ad26187346eb4a4f3ca44b8e.jpg host=musikfish.herokuapp.com request_id=761b5080-013c-4308-8073-6ae64ee63fe5 fwd="76.19.195.114" dyno=web.1 connect=1ms service=4ms status=304 bytes=133
2014-04-29T01:28:24.575301+00:00 heroku[router]: at=info method=POST path=/users/sign_in host=musikfish.herokuapp.com request_id=95ef1998-d961-4783-8685-d7d463c04cd8 fwd="76.19.195.114" dyno=web.1 connect=0ms service=134ms status=200 bytes=5158
2014-04-29T01:28:24.444910+00:00 app[web.1]: Started POST "/users/sign_in" for 76.19.195.114 at 2014-04-29 01:28:24 +0000
2014-04-29T01:28:24.450353+00:00 app[web.1]: Processing by Devise::SessionsController#create as HTML
2014-04-29T01:28:24.450395+00:00 app[web.1]: Processing by Devise::SessionsController#create as HTML
2014-04-29T01:28:24.450480+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"8oU2ObllOpGkDy+clk2mfnxi9y/oY/JpEWJAGVVEmNA=", "user"=>{"user_name"=>"therubies1000", "password"=>"[FILTERED]", "remember_me"=>"1"}, "commit"=>"Sign In!"}
2014-04-29T01:28:24.456080+00:00 app[web.1]: Completed 401 Unauthorized in 5ms
2014-04-29T01:28:24.457165+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2014-04-29T01:28:24.457172+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2014-04-29T01:28:24.457213+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"8oU2ObllOpGkDy+clk2mfnxi9y/oY/JpEWJAGVVEmNA=", "user"=>{"user_name"=>"therubies1000", "password"=>"[FILTERED]", "remember_me"=>"1"}, "commit"=>"Sign In!"}
2014-04-29T01:28:24.450529+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"8oU2ObllOpGkDy+clk2mfnxi9y/oY/JpEWJAGVVEmNA=", "user"=>{"user_name"=>"therubies1000", "password"=>"[FILTERED]", "remember_me"=>"1"}, "commit"=>"Sign In!"}
2014-04-29T01:28:24.456071+00:00 app[web.1]: Completed 401 Unauthorized in 5ms
2014-04-29T01:28:24.457231+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"8oU2ObllOpGkDy+clk2mfnxi9y/oY/JpEWJAGVVEmNA=", "user"=>{"user_name"=>"therubies1000", "password"=>"[FILTERED]", "remember_me"=>"1"}, "commit"=>"Sign In!"}
2014-04-29T01:28:24.570577+00:00 app[web.1]: Rendered devise/sessions/new.html.erb within layouts/application (9.5ms)
2014-04-29T01:28:24.570588+00:00 app[web.1]: Rendered devise/sessions/new.html.erb within layouts/application (9.5ms)
2014-04-29T01:28:24.571495+00:00 app[web.1]: Completed 200 OK in 114ms (Views: 11.0ms | ActiveRecord: 0.0ms)
2014-04-29T01:28:24.571501+00:00 app[web.1]: Completed 200 OK in 114ms (Views: 11.0ms | ActiveRecord: 0.0ms)
2014-04-29T01:28:24.444975+00:00 app[web.1]: Started POST "/users/sign_in" for 76.19.195.114 at 2014-04-29 01:28:24 +0000
2014-04-29T01:28:24.685158+00:00 heroku[router]: at=info method=GET path=/assets/application-f22c7c9cfd4209f8467d10162777b447.js host=musikfish.herokuapp.com request_id=88423114-72bc-49e8-bb7d-cf5b19fc1908 fwd="76.19.195.114" dyno=web.1 connect=2ms service=6ms status=304 bytes=133
2014-04-29T01:28:24.868171+00:00 heroku[router]: at=info method=GET path=/assets/vendor/modernizr-aee7c485b9900b5743cd0108ba6c4203.js host=musikfish.herokuapp.com request_id=5724d3e6-9603-4b84-84fb-3ba5c696c74f fwd="76.19.195.114" dyno=web.1 connect=118ms service=41ms status=304 bytes=133
2014-04-29T01:31:54.118937+00:00 heroku[router]: at=info method=POST path=/users/sign_in host=musikfish.herokuapp.com request_id=a92e7853-43a3-48b5-9f42-6e55beaf1be2 fwd="76.19.195.114" dyno=web.1 connect=5ms service=173ms status=200 bytes=5158
2014-04-29T01:31:53.955209+00:00 app[web.1]: Started POST "/users/sign_in" for 76.19.195.114 at 2014-04-29 01:31:53 +0000
2014-04-29T01:31:53.957652+00:00 app[web.1]: Processing by Devise::SessionsController#create as HTML
2014-04-29T01:31:53.957659+00:00 app[web.1]: Processing by Devise::SessionsController#create as HTML
2014-04-29T01:31:53.957698+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"8oU2ObllOpGkDy+clk2mfnxi9y/oY/JpEWJAGVVEmNA=", "user"=>{"user_name"=>"therubies1000", "password"=>"[FILTERED]", "remember_me"=>"1"}, "commit"=>"Sign In!"}
2014-04-29T01:31:53.957720+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"8oU2ObllOpGkDy+clk2mfnxi9y/oY/JpEWJAGVVEmNA=", "user"=>{"user_name"=>"therubies1000", "password"=>"[FILTERED]", "remember_me"=>"1"}, "commit"=>"Sign In!"}
2014-04-29T01:31:53.968990+00:00 app[web.1]: Completed 401 Unauthorized in 11ms
2014-04-29T01:31:53.969002+00:00 app[web.1]: Completed 401 Unauthorized in 11ms
2014-04-29T01:31:53.971927+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2014-04-29T01:31:53.955199+00:00 app[web.1]: Started POST "/users/sign_in" for 76.19.195.114 at 2014-04-29 01:31:53 +0000
2014-04-29T01:31:53.971933+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2014-04-29T01:31:53.971976+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"8oU2ObllOpGkDy+clk2mfnxi9y/oY/JpEWJAGVVEmNA=", "user"=>{"user_name"=>"therubies1000", "password"=>"[FILTERED]", "remember_me"=>"1"}, "commit"=>"Sign In!"}
2014-04-29T01:31:53.971991+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"8oU2ObllOpGkDy+clk2mfnxi9y/oY/JpEWJAGVVEmNA=", "user"=>{"user_name"=>"therubies1000", "password"=>"[FILTERED]", "remember_me"=>"1"}, "commit"=>"Sign In!"}
2014-04-29T01:31:54.117705+00:00 app[web.1]: Rendered devise/sessions/new.html.erb within layouts/application (5.9ms)
2014-04-29T01:31:54.117717+00:00 app[web.1]: Rendered devise/sessions/new.html.erb within layouts/application (5.9ms)
2014-04-29T01:31:54.118464+00:00 app[web.1]: Completed 200 OK in 146ms (Views: 7.2ms | ActiveRecord: 0.0ms)
2014-04-29T01:31:54.118470+00:00 app[web.1]: Completed 200 OK in 146ms (Views: 7.2ms | ActiveRecord: 0.0ms)
2014-04-29T01:31:54.237788+00:00 heroku[router]: at=info method=GET path=/assets/application-35b8d7e622749de25608aa28d2dab9bf.css host=musikfish.herokuapp.com request_id=77e5536c-f9af-4285-a236-a011c1355b81 fwd="76.19.195.114" dyno=web.1 connect=4ms service=9ms status=304 bytes=133
2014-04-29T01:31:54.243275+00:00 heroku[router]: at=info method=GET path=/assets/application-f22c7c9cfd4209f8467d10162777b447.js host=musikfish.herokuapp.com request_id=8ca4ebaf-739d-4e4a-901b-e616e2b7033b fwd="76.19.195.114" dyno=web.1 connect=6ms service=11ms status=304 bytes=133
2014-04-29T01:31:54.264123+00:00 heroku[router]: at=info method=GET path=/assets/vendor/modernizr-aee7c485b9900b5743cd0108ba6c4203.js host=musikfish.herokuapp.com request_id=f2a2d4e9-4163-425d-b26b-5255a6a1f5fe fwd="76.19.195.114" dyno=web.1 connect=6ms service=9ms status=304 bytes=133
2014-04-29T01:31:54.772855+00:00 heroku[router]: at=info method=GET path=/assets/record-b8785487ad26187346eb4a4f3ca44b8e.jpg host=musikfish.herokuapp.com request_id=d103b167-2ed5-4667-874f-679e3d07b859 fwd="76.19.195.114" dyno=web.1 connect=2ms service=5ms status=304 bytes=133
2014-04-29T01:32:03.174817+00:00 heroku[router]: at=info method=GET path=/ host=musikfish.herokuapp.com request_id=cd1eb130-8cf7-453a-982f-b7a74ccafe3e fwd="76.19.195.114" dyno=web.1 connect=11ms service=16ms status=302 bytes=1226
2014-04-29T01:32:03.158631+00:00 app[web.1]: Processing by MusicVideosController#index as HTML
2014-04-29T01:32:03.158689+00:00 app[web.1]: Processing by MusicVideosController#index as HTML
2014-04-29T01:32:03.159895+00:00 app[web.1]: Completed 401 Unauthorized in 1ms
2014-04-29T01:32:03.159937+00:00 app[web.1]: Completed 401 Unauthorized in 1ms
2014-04-29T01:32:03.156335+00:00 app[web.1]: Started GET "/" for 76.19.195.114 at 2014-04-29 01:32:03 +0000
2014-04-29T01:32:03.156448+00:00 app[web.1]: Started GET "/" for 76.19.195.114 at 2014-04-29 01:32:03 +0000
2014-04-29T01:32:03.570966+00:00 heroku[router]: at=info method=GET path=/users/sign_in host=musikfish.herokuapp.com request_id=0bcfa714-0019-4860-aa40-c18140690458 fwd="76.19.195.114" dyno=web.1 connect=121ms service=165ms status=200 bytes=5117
2014-04-29T01:32:03.511737+00:00 app[web.1]: Started GET "/users/sign_in" for 76.19.195.114 at 2014-04-29 01:32:03 +0000
2014-04-29T01:32:03.511725+00:00 app[web.1]: Started GET "/users/sign_in" for 76.19.195.114 at 2014-04-29 01:32:03 +0000
2014-04-29T01:32:03.514596+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2014-04-29T01:32:03.527802+00:00 app[web.1]: Completed 200 OK in 13ms (Views: 10.8ms | ActiveRecord: 0.0ms)
2014-04-29T01:32:03.527809+00:00 app[web.1]: Completed 200 OK in 13ms (Views: 10.8ms | ActiveRecord: 0.0ms)
2014-04-29T01:32:03.514590+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2014-04-29T01:32:03.527020+00:00 app[web.1]: Rendered devise/sessions/new.html.erb within layouts/application (9.6ms)
2014-04-29T01:32:03.527010+00:00 app[web.1]: Rendered devise/sessions/new.html.erb within layouts/application (9.6ms)
Have you successfully seeded a database locally?
You can also try putting puts lines in your seed file to ensure that the code is being run. (IE, after MusicVideo.create, say puts "Music Videos created!", which will be written to your console when running rake db:seed)
My hunch is that your models are failing validation; perhaps try using create! instead of create to see if an error is thrown.

Rails app make 2 actions per 1 request

my problem: I have a rails app, now i see at logs on production and dev different computers, that something double all actions:
routes:
root "main_page#index"
resources :search, only: [:index]
logs heroku (production)
2014-02-10T07:45:08.214686+00:00 app[web.1]: Started GET "/search?type=shortdata
&data=501" for 1.1.1.1 at 2014-02-10 07:45:08 +0000
2014-02-10T07:45:08.214734+00:00 app[web.1]: Started GET "/search?type=shortdata
&data=501" for 1.1.1.1 at 2014-02-10 07:45:08 +0000
2014-02-10T07:45:08.222497+00:00 heroku[router]: at=info method=GET path=/search
?type=shortdata&data=501 host=app.herokuapp.com request_id=4a0c2345-336
e-44fd-b33b-44caeb3bac90 fwd="1.1.1.1" dyno=web.1 connect=0ms service=13m
s status=304 bytes=0
2014-02-10T07:45:08.217106+00:00 app[web.1]: Processing by SearchController#inde
x as JSON
2014-02-10T07:45:08.217106+00:00 app[web.1]: Processing by SearchController#inde
x as JSON
2014-02-10T07:45:08.217106+00:00 app[web.1]: Parameters: {"type"=>"shortdata",
"data"=>"501"}
2014-02-10T07:45:08.217106+00:00 app[web.1]: Parameters: {"type"=>"shortdata",
"data"=>"501"}
2014-02-10T07:45:08.222806+00:00 app[web.1]: Completed 200 OK in 5ms (Views: 0.5
ms | ActiveRecord: 3.9ms)
2014-02-10T07:45:08.222806+00:00 app[web.1]: Completed 200 OK in 5ms (Views: 0.5
ms | ActiveRecord: 3.9ms)
controller:
def index
data = params[:data]
type=params[:type]
if type==ShortDataType
if likeAZip?(data)
render(json:shortSearchByZip(data)) && return
else
render(json:shortSearchByCity(data)) && return
end
else
render json:nothing
end
end
no callbacks, set (puts 1 after "def index") - it go to logs only 1 times - result:
Started GET "/search?type=shortdata&data=501" for 127.0.0.1 at 2014-02-10 18:54:
38 +1100
Started GET "/search?type=shortdata&data=501" for 127.0.0.1 at 2014-02-10 18:54:
38 +1100
Processing by SearchController#index as JSON
Processing by SearchController#index as JSON
Parameters: {"type"=>"shortdata", "data"=>"501"}
Parameters: {"type"=>"shortdata", "data"=>"501"}
1
(2.0ms) select .....
what is it?
The problem was in gem rails_12factor
That was included in all ENV, and it made double logging.
Actions really make only once
Now I add group: :production to gem, and plan to change webrick web server to other in prod
thanks for the help

Most current version uploading locally but old version still remains on heroku

I've tried tons of things but can't figure it out... I can't find anything in the heroku logs, what could I be missing? This is the heroku logs..
I think it could be a problem in gemfile or gemfile.lock since it skips the gemfile.lock because of windows I think, but don't see how that would affect anything as it was updating fine earlier, thoughts?
EDIT: I've just realized that on my Huroku the name of my application is pinterestingx(pinterestingx.herokuapp.com) but when I git push heroku master my address bar says omr-pinterestingx.herokuapp.com so they don't match, might this be the problem? How can I solve this?
$ heroku logs
←[36m2014-01-24T05:26:36.093302+00:00 app[web.1]:←[0m bin/rails:4:in `require'
←[36m2014-01-24T05:26:36.093043+00:00 app[web.1]:←[0m /app/vendor/bundle/ruby/
2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
←[36m2014-01-24T05:26:36.093302+00:00 app[web.1]:←[0m [2014-01-24 05:26:36] INFO
going to shutdown ...
←[36m2014-01-24T05:26:36.093302+00:00 app[web.1]:←[0m bin/rails:4:in `<main>'
←[36m2014-01-24T05:26:36.093773+00:00 app[web.1]:←[0m [2014-01-24 05:26:36] INFO
WEBrick::HTTPServer#start done.
←[36m2014-01-24T05:26:36.093773+00:00 app[web.1]:←[0m Exiting
←[36m2014-01-24T05:26:36.562152+00:00 heroku[web.1]:←[0m Starting process with c
ommand `bin/rails server -p 12335 -e $RAILS_ENV`
←[36m2014-01-24T05:26:37.442566+00:00 heroku[web.1]:←[0m Process exited with sta
tus 143
←[36m2014-01-24T05:26:40.284565+00:00 app[web.1]:←[0m [2014-01-24 05:26:40] INFO
ruby 2.0.0 (2013-11-22) [x86_64-linux]
←[36m2014-01-24T05:26:40.284565+00:00 app[web.1]:←[0m [2014-01-24 05:26:40] INFO
WEBrick 1.3.1
←[36m2014-01-24T05:26:40.284565+00:00 app[web.1]:←[0m [2014-01-24 05:26:40] INFO
WEBrick::HTTPServer#start: pid=2 port=12335
←[36m2014-01-24T05:26:40.557417+00:00 heroku[web.1]:←[0m State changed from star
ting to up
←[36m2014-01-24T05:27:17.022181+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:27:17 +0000
←[36m2014-01-24T05:27:17.022181+00:00 app[web.1]:←[0m => Rails 4.0.0 application
starting in production on http://0.0.0.0:12335
←[36m2014-01-24T05:27:17.022181+00:00 app[web.1]:←[0m => Run `rails server -h` f
or more startup options
←[36m2014-01-24T05:27:17.022181+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:27:17 +0000
←[36m2014-01-24T05:27:17.022181+00:00 app[web.1]:←[0m => Booting WEBrick
←[36m2014-01-24T05:27:17.022181+00:00 app[web.1]:←[0m => Ctrl-C to shutdown serv
er
←[36m2014-01-24T05:27:17.140538+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[36m2014-01-24T05:27:17.140538+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[33m2014-01-24T05:27:17.243058+00:00 heroku[router]:←[0m at=info method=GET pat
h=/ host=omr-pinterestingx.herokuapp.com request_id=95dd9900-74ee-4861-8e51-3ec3
eedc9753 fwd="108.227.81.48" dyno=web.1 connect=0ms service=259ms status=304 byt
es=0
←[36m2014-01-24T05:27:17.232081+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (64.3ms)
←[36m2014-01-24T05:27:17.232081+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (64.3ms)
←[36m2014-01-24T05:27:17.235160+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (1.1ms)
←[36m2014-01-24T05:27:17.235552+00:00 app[web.1]:←[0m Completed 200 OK in 95ms (
Views: 47.3ms | ActiveRecord: 22.5ms)
←[36m2014-01-24T05:27:17.235160+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (1.1ms)
←[36m2014-01-24T05:27:17.235552+00:00 app[web.1]:←[0m Completed 200 OK in 95ms (
Views: 47.3ms | ActiveRecord: 22.5ms)
←[33m2014-01-24T05:27:17.501260+00:00 heroku[router]:←[0m at=info method=GET pat
h=/assets/application-181cdfad867b7ff79ab77b7ed8cc2b59.css host=omr-pinteresting
x.herokuapp.com request_id=5d154d11-1ea3-4b32-b124-2e3fcf22144a fwd="108.227.81.
48" dyno=web.1 connect=0ms service=6ms status=200 bytes=99534
←[33m2014-01-24T05:27:17.519230+00:00 heroku[router]:←[0m at=info method=GET pat
h=/assets/application-3e804bc17a248fb868fa056958a4fd83.js host=omr-pinterestingx
.herokuapp.com request_id=7cd7bcde-3dc3-4b8a-88ca-8f3c8e74e4ee fwd="108.227.81.4
8" dyno=web.1 connect=0ms service=7ms status=200 bytes=141097
←[32m2014-01-24T05:27:27.489739+00:00 heroku[api]:←[0m Starting process with com
mand `bundle exec rake db:migrate` by norisjavier#gmail.com
←[35m2014-01-24T05:27:30.799091+00:00 heroku[run.7322]:←[0m Awaiting client
←[35m2014-01-24T05:27:30.829842+00:00 heroku[run.7322]:←[0m Starting process wit
h command `bundle exec rake db:migrate`
←[35m2014-01-24T05:27:31.022053+00:00 heroku[run.7322]:←[0m State changed from s
tarting to up
←[35m2014-01-24T05:27:35.520815+00:00 heroku[run.7322]:←[0m Process exited with
status 0
←[35m2014-01-24T05:27:35.534073+00:00 heroku[run.7322]:←[0m State changed from u
p to complete
←[36m2014-01-24T05:27:50.038920+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (6.9ms)
←[36m2014-01-24T05:27:50.030117+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[36m2014-01-24T05:27:50.027937+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:27:50 +0000
←[36m2014-01-24T05:27:50.030117+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[36m2014-01-24T05:27:50.038920+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (6.9ms)
←[36m2014-01-24T05:27:50.040698+00:00 app[web.1]:←[0m Completed 200 OK in 10ms (
Views: 4.2ms | ActiveRecord: 5.0ms)
←[36m2014-01-24T05:27:50.040698+00:00 app[web.1]:←[0m Completed 200 OK in 10ms (
Views: 4.2ms | ActiveRecord: 5.0ms)
←[36m2014-01-24T05:27:50.040257+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (0.7ms)
←[36m2014-01-24T05:27:50.040257+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (0.7ms)
←[36m2014-01-24T05:27:50.027937+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:27:50 +0000
←[33m2014-01-24T05:27:50.043730+00:00 heroku[router]:←[0m at=info method=GET pat
h=/ host=omr-pinterestingx.herokuapp.com request_id=114be963-6367-4dc4-ae80-fd2b
0c4404c4 fwd="108.227.81.48" dyno=web.1 connect=1ms service=19ms status=304 byte
s=0
←[33m2014-01-24T05:27:50.251339+00:00 heroku[router]:←[0m at=info method=GET pat
h=/assets/application-181cdfad867b7ff79ab77b7ed8cc2b59.css host=omr-pinteresting
x.herokuapp.com request_id=bc73f88b-d742-4ecd-8c46-6d28593cf00f fwd="108.227.81.
48" dyno=web.1 connect=0ms service=6ms status=304 bytes=0
←[33m2014-01-24T05:27:50.265148+00:00 heroku[router]:←[0m at=info method=GET pat
h=/assets/application-3e804bc17a248fb868fa056958a4fd83.js host=omr-pinterestingx
.herokuapp.com request_id=7c09708a-ab5e-40f1-a578-8cbd8a50d238 fwd="108.227.81.4
8" dyno=web.1 connect=0ms service=3ms status=304 bytes=0
←[36m2014-01-24T05:39:15.281248+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:39:15 +0000
←[36m2014-01-24T05:39:15.281248+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:39:15 +0000
←[36m2014-01-24T05:39:15.282548+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[36m2014-01-24T05:39:15.282548+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[36m2014-01-24T05:39:15.290690+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (6.7ms)
←[36m2014-01-24T05:39:15.292301+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (0.7ms)
←[36m2014-01-24T05:39:15.290690+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (6.7ms)
←[36m2014-01-24T05:39:15.292374+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (0.7ms)
←[36m2014-01-24T05:39:15.292828+00:00 app[web.1]:←[0m Completed 200 OK in 10ms (
Views: 4.2ms | ActiveRecord: 5.0ms)
←[36m2014-01-24T05:39:15.292930+00:00 app[web.1]:←[0m Completed 200 OK in 10ms (
Views: 4.2ms | ActiveRecord: 5.0ms)
←[33m2014-01-24T05:39:15.297080+00:00 heroku[router]:←[0m at=info method=GET pat
h=/ host=omr-pinterestingx.herokuapp.com request_id=e5e731a4-2e38-4dc3-9bd4-f16d
d70b6d6f fwd="108.227.81.48" dyno=web.1 connect=1ms service=18ms status=304 byte
s=0
←[33m2014-01-24T05:39:15.726275+00:00 heroku[router]:←[0m at=info method=GET pat
h=/assets/application-181cdfad867b7ff79ab77b7ed8cc2b59.css host=omr-pinteresting
x.herokuapp.com request_id=dbadec13-1ea9-419d-84d0-018366c1d2df fwd="108.227.81.
48" dyno=web.1 connect=2ms service=13ms status=200 bytes=99534
←[33m2014-01-24T05:39:15.736938+00:00 heroku[router]:←[0m at=info method=GET pat
h=/assets/application-3e804bc17a248fb868fa056958a4fd83.js host=omr-pinterestingx
.herokuapp.com request_id=be9f3e8f-22cd-46f8-a38e-70499e520bbb fwd="108.227.81.4
8" dyno=web.1 connect=1ms service=6ms status=304 bytes=0
←[36m2014-01-24T05:39:20.124660+00:00 app[web.1]:←[0m Started DELETE "/users/sig
n_out" for 108.227.81.48 at 2014-01-24 05:39:20 +0000
←[36m2014-01-24T05:39:20.124660+00:00 app[web.1]:←[0m Started DELETE "/users/sig
n_out" for 108.227.81.48 at 2014-01-24 05:39:20 +0000
←[36m2014-01-24T05:39:20.126980+00:00 app[web.1]:←[0m Processing by Devise::Sess
ionsController#destroy as HTML
←[36m2014-01-24T05:39:20.126980+00:00 app[web.1]:←[0m Parameters: {"authentici
ty_token"=>"1AVdG1oEBZrR2kBVmArxtsQfDriMwhdxepobzVeZjUo="}
←[36m2014-01-24T05:39:20.127074+00:00 app[web.1]:←[0m Parameters: {"authentici
ty_token"=>"1AVdG1oEBZrR2kBVmArxtsQfDriMwhdxepobzVeZjUo="}
←[36m2014-01-24T05:39:20.126980+00:00 app[web.1]:←[0m Processing by Devise::Sess
ionsController#destroy as HTML
←[33m2014-01-24T05:39:20.202045+00:00 heroku[router]:←[0m at=info method=POST pa
th=/users/sign_out host=omr-pinterestingx.herokuapp.com request_id=a0332921-4adc
-4f55-ac16-1d76b01116b8 fwd="108.227.81.48" dyno=web.1 connect=2ms service=86ms
status=302 bytes=105
←[36m2014-01-24T05:39:20.196532+00:00 app[web.1]:←[0m Redirected to http://omr-p
interestingx.herokuapp.com/
←[36m2014-01-24T05:39:20.196789+00:00 app[web.1]:←[0m Completed 302 Found in 70m
s (ActiveRecord: 6.1ms)
←[36m2014-01-24T05:39:20.196532+00:00 app[web.1]:←[0m Redirected to http://omr-p
interestingx.herokuapp.com/
←[36m2014-01-24T05:39:20.188336+00:00 app[web.1]:←[0m [deprecated] I18n.enforce_
available_locales will default to true in the future. If you really want to skip
validation of your locale you can set I18n.enforce_available_locales = false to
avoid this message.
←[36m2014-01-24T05:39:20.196735+00:00 app[web.1]:←[0m Completed 302 Found in 70m
s (ActiveRecord: 6.1ms)
←[36m2014-01-24T05:39:20.570672+00:00 app[web.1]:←[0m Rendered pages/_home.htm
l.erb (1.0ms)
←[36m2014-01-24T05:39:20.555106+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:39:20 +0000
←[36m2014-01-24T05:39:20.555106+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:39:20 +0000
←[36m2014-01-24T05:39:20.556383+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[36m2014-01-24T05:39:20.573939+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (16.1ms)
←[36m2014-01-24T05:39:20.556383+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[36m2014-01-24T05:39:20.573939+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (16.1ms)
←[36m2014-01-24T05:39:20.575704+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (1.0ms)
←[36m2014-01-24T05:39:20.575704+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (1.0ms)
←[36m2014-01-24T05:39:20.570672+00:00 app[web.1]:←[0m Rendered pages/_home.htm
l.erb (1.0ms)
←[36m2014-01-24T05:39:20.576180+00:00 app[web.1]:←[0m Completed 200 OK in 20ms (
Views: 16.1ms | ActiveRecord: 2.5ms)
←[36m2014-01-24T05:39:20.576180+00:00 app[web.1]:←[0m Completed 200 OK in 20ms (
Views: 16.1ms | ActiveRecord: 2.5ms)
←[33m2014-01-24T05:39:20.578835+00:00 heroku[router]:←[0m at=info method=GET pat
h=/ host=omr-pinterestingx.herokuapp.com request_id=105ba383-0040-4647-b888-7790
9123694f fwd="108.227.81.48" dyno=web.1 connect=10ms service=30ms status=200 byt
es=1928
←[36m2014-01-24T05:42:07.219371+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (6.6ms)
←[36m2014-01-24T05:42:07.219371+00:00 app[web.1]:←[0m Rendered pins/index.html
.erb within layouts/application (6.6ms)
←[36m2014-01-24T05:42:07.221931+00:00 app[web.1]:←[0m Completed 200 OK in 16ms (
Views: 10.7ms | ActiveRecord: 2.6ms)
←[36m2014-01-24T05:42:07.221931+00:00 app[web.1]:←[0m Completed 200 OK in 16ms (
Views: 10.7ms | ActiveRecord: 2.6ms)
←[36m2014-01-24T05:42:07.203780+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:42:07 +0000
←[36m2014-01-24T05:42:07.203560+00:00 app[web.1]:←[0m Started GET "/" for 108.22
7.81.48 at 2014-01-24 05:42:07 +0000
←[36m2014-01-24T05:42:07.205899+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[36m2014-01-24T05:42:07.215560+00:00 app[web.1]:←[0m Rendered pages/_home.htm
l.erb (1.0ms)
←[36m2014-01-24T05:42:07.205687+00:00 app[web.1]:←[0m Processing by PinsControll
er#index as HTML
←[36m2014-01-24T05:42:07.215560+00:00 app[web.1]:←[0m Rendered pages/_home.htm
l.erb (1.0ms)
←[36m2014-01-24T05:42:07.221542+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (1.5ms)
←[36m2014-01-24T05:42:07.221542+00:00 app[web.1]:←[0m Rendered layouts/_header
.html.erb (1.5ms)
←[33m2014-01-24T05:42:07.455010+00:00 heroku[router]:←[0m at=info method=GET pat
h=/assets/application-181cdfad867b7ff79ab77b7ed8cc2b59.css host=omr-pinteresting
x.herokuapp.com request_id=71800b84-1658-4f60-a257-fa56f4ade2ba fwd="108.227.81.
48" dyno=web.1 connect=1ms service=6ms status=304 bytes=0
←[33m2014-01-24T05:42:07.466827+00:00 heroku[router]:←[0m at=info method=GET pat
h=/assets/application-3e804bc17a248fb868fa056958a4fd83.js host=omr-pinterestingx
.herokuapp.com request_id=560eea6e-650c-4b47-ad6b-1eee25c6cc9c fwd="108.227.81.4
8" dyno=web.1 connect=2ms service=4ms status=304 bytes=0
←[33m2014-01-24T05:42:07.227755+00:00 heroku[router]:←[0m at=info method=GET pat
h=/ host=omr-pinterestingx.herokuapp.com request_id=31a5b45f-ff03-4d6d-be30-7c45
280a0b43 fwd="108.227.81.48" dyno=web.1 connect=2ms service=34ms status=200 byte
s=1864

Rails 3.2 app on Heroku with Devise: Can't log in with Mobile Safari

I've built an simple rails app and am deploying it to heroku. The app uses devise for authentication. Everything works fine in development and production environment, ACCEPT when one tries to log in via the Mobile Safari browser on iOS.
Heroku logs say the following:
2012-10-17T18:56:52+00:00 app[web.1]: Started POST "/users/sign_in" for 87.123.175.106 at 2012-10-17 20:56:52 +0200
2012-10-17T18:56:52+00:00 app[web.1]: Processing by Devise::SessionsController#create as HTML
2012-10-17T18:56:52+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"SHHVgAxRFJ8VFu2cnbh/YGn6s6q0L9Mnp24x9Whu2mk=", "user"=>{"name"=>"test", "password"=>"[FILTERED]"}, "commit"=>"anmelden"}
2012-10-17T18:56:52+00:00 app[web.1]: WARNING: Can't verify CSRF token authenticity
2012-10-17T18:56:53+00:00 app[web.1]: Redirected to http://xxxxxxxx.herokuapp.com/
The problem doesn't occur with other iOS browsers such as Opera.
I didn't do any custom stuff to devise (except for adding a user name), it is implemented pretty much out of the box.
I have read several posts where the issue with iOS and CSRF token is vaguely addressed, but I'm pretty new to rails and don't really know how to fix this. Can anyone help, please?
UPDATE:
As advised in this post, I commented out protect_from_forgery in application_controller.rb as well as the csrf_meta_tags in application.html.erb.
Also, I added :domain => :all to config/session_store.rb.
Nothing helped. Obiously, I don't get the Can't verify CSRF token authenticity error anymore, but the following logs:
2012-10-18T18:19:03+00:00 app[web.1]: Started POST "/users/sign_in" for 87.123.130.136 at 2012-10-18 20:19:03 +0200
2012-10-18T18:19:03+00:00 app[web.1]: Processing by Devise::SessionsController#create as HTML
2012-10-18T18:19:03+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"Q+fF+9Sj2Q+X2VV34Jkrt1K8C3u4/NB6YC3yslYjkyQ=", "user"=>{"name"=>"test", "password"=>"[FILTERED]"}, "commit"=>"anmelden"}
2012-10-18T18:19:03+00:00 heroku[router]: POST pacific-beyond-5428.herokuapp.com/users/sign_in dyno=w
eb.1 queue=0 wait=0ms service=783ms status=302 bytes=107
2012-10-18T18:19:03+00:00 app[web.1]: Redirected to http://pacific-beyond-5428.herokuapp.com/
2012-10-18T18:19:03+00:00 app[web.1]: Completed 302 Found in 577ms (ActiveRecord: 0.0ms)
2012-10-18T18:19:04+00:00 app[web.1]:
2012-10-18T18:19:04+00:00 app[web.1]:
2012-10-18T18:19:04+00:00 app[web.1]: Started GET "/" for 87.123.130.136 at 2012-10-18 20:19:04 +0200
2012-10-18T18:19:04+00:00 app[web.1]: Processing by HomeController#index as HTML
2012-10-18T18:19:04+00:00 app[web.1]: Completed 401 Unauthorized in 0ms
2012-10-18T18:19:04+00:00 heroku[router]: GET pacific-beyond-5428.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=12ms status=302 bytes=120
2012-10-18T18:19:04+00:00 app[web.1]:
2012-10-18T18:19:04+00:00 app[web.1]: Started GET "/users/sign_in" for 87.123.130.136 at 2012-10-18 20:19:04 +0200
2012-10-18T18:19:04+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2012-10-18T18:19:04+00:00 app[web.1]:
2012-10-18T18:19:04+00:00 app[web.1]: Rendered layouts/_navigation.html.erb (1.4ms)
2012-10-18T18:19:04+00:00 app[web.1]: Rendered devise/shared/_links.html.erb (0.7ms)
2012-10-18T18:19:04+00:00 app[web.1]: Rendered devise/sessions/new.html.erb within layouts/application (25.8ms)
2012-10-18T18:19:04+00:00 app[web.1]: Rendered layouts/_messages.html.erb (0.4ms)
2012-10-18T18:19:04+00:00 app[web.1]: Rendered layouts/_sidebar.html.erb (0.3ms)
2012-10-18T18:19:04+00:00 app[web.1]: Completed 200 OK in 33ms (Views: 31.9ms | ActiveRecord: 0.0ms)
2012-10-18T18:19:04+00:00 heroku[router]: GET pacific-beyond-5428.herokuapp.com/users/sign_in dyno=web.1 queue=0 wait=0ms service=44ms status=200 bytes=2361
2012-10-18T18:19:04+00:00 app[web.1]:
2012-10-18T18:19:04+00:00 app[web.1]:
2012-10-18T18:19:04+00:00 app[web.1]: Started GET "/assets/foundation/app.js" for 87.123.130.136 at 2012-10-18 20:19:04 +0200
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/app.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Served asset /foundation/app.js - 304 Not Modified (282ms)
2012-10-18T18:19:05+00:00 heroku[router]: GET pacific-beyond-5428.herokuapp.com/assets/foundation/app.js dyno=web.1 queue=0 wait=0ms service=297ms status=304 bytes=0
2012-10-18T18:19:05+00:00 app[web.1]:
2012-10-18T18:19:05+00:00 app[web.1]:
2012-10-18T18:19:05+00:00 app[web.1]: Started GET "/assets/foundation/index.js" for 87.123.130.136 at 2012-10-18 20:19:05 +0200
2012-10-18T18:19:05+00:00 heroku[router]: GET pacific-beyond-5428.herokuapp.com/assets/foundation/index.js dyno=web.1 queue=0 wait=0ms service=905ms status=304 bytes=0
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/modernizr.foundation.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.placeholder.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.alerts.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.accordion.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.buttons.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.tooltips.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.forms.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.tabs.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.navigation.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.topbar.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.reveal.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.orbit.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/jquery.foundation.mediaQueryToggle.js (0ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Compiled foundation/index.js (86ms) (pid 2)
2012-10-18T18:19:05+00:00 app[web.1]: Served asset /foundation/index.js - 304 Not Modified (616ms)
Somebody an Idea?
I had this same errorm seeing the same symptoms on production in the Heroku logs of:
WARNING: Can't verify CSRF token authenticity
And the 401 Unauthorized redirect after login attempt.
The resolution for me was to add domain: :all to the session_store in config/initializers/session_store.rb.

Resources