Friday, March 21, 2014

Paperclip gem amazon s3 path .exists? throwing timeout error

Faced an issue where amazon s3 path was showing correctly but then when we try object.image.exists? then it threw

AWS::S3::Errors::RequestTimeout error

 The issue got fixed after paperclip gem was upgraded to  version 3.0.2 

Reference links:
https://github.com/thoughtbot/paperclip/issues/751

Wednesday, March 5, 2014

Devise redirect to another subdomain without login

Devise gem redirect to another subdomain without login

Set the domain in initializers/session_store.rb

For example.

App::Application.config.session_store :cookie_store, key: '_play_cricket_session', domain: ".lvh.me"



App::Application.config.session_store :cookie_store, key: '_play_cricket_session', domain: ".website.com"