RailsCasts Pro episodes are now free!

Learn more or hide this

holgersindbaek's Profile

GitHub User: holgersindbaek

Comments by

Avatar

A little warning.

Have been playing around with rubber and using this great tutorial as a guide. Create 3 instances and forgot about them for some weeks... BANG, amazon send me a whopping bill of $168.

Play around with the t1.micro instance and not the instances that are being played around with in the rails cast!

Avatar

I couldn't get cropping to work with mini magick, but after trying some different things I still managed. Seems like someone has switched around on (X, Y) and (W, H).

This should work:

def crop
  manipulate! do |img|
    img.crop "#{model.width}x#{model.height}+#{model.x}+#{model.y}"
    img
  end
end
Avatar

@carlosmendes Did you do that before or after you did cap rubber:create_instance?

Avatar

Same problem here. Submitted it as an issue on the gem - https://github.com/rubber/rubber/issues/319.

@carlosmendes @skwasha @Heber Massami Nunomura @rich833 @kmamit Did you get it to work and how?

Edit

If I do cap deploy afterwards, then it deploys and works fine, but this issue should probably be fixed

Avatar

Great, thanks. I'll look into it straight away :-).

Avatar

Awesome railscast Ryan! One thing... each time I log into my application (www.Meer.li), it logs me out whenever I close the browser. How do I save and retrieve the user with a cookie instead of the session, so the user will be logged in automatically when he visits the page the next time?

Hope you have a solution. Would really appreciate it!