RailsCasts Pro episodes are now free!

Learn more or hide this

andreimoment's Profile

GitHub User: andreimoment

Comments by


Sounds like this could save some requests esp. when finding an address.

Thank you.


Removing the pg gem from the gem file resolved the issue. The MySQL gem may also cause this to happen.


Thanks for the wonderful gem!

Ruby 1.9.2p290, Rails 3.2.7, Windows 7 here.

Shows load times but the SQL column is empty.

The dev database is on sqlite.


What is the way to test beyond login_required?

Trying this in spec/requests does not seem to help:

before do
  @user = FactoryGirl.create :user
  cookies[:auth_token] = @user.auth_token
  visit "/"

Results in a redirect to the signin page. Can anybody help with this?


Any idea on how to add a restriction to the number of user sessions with this approach? What I'd like to have is one browser window per user. Opening the app in another browser window would display a warning, signing in from another browser window would also display a warning+a choice to destroy the other session.

Has anyone implemented anything like this?


Having the exact same issue... did you resolve this?