From: Soichi Ishida Date: 2012-04-21T10:15:30+09:00 Subject: What does '||=' mean? Well, as stated in the subject, what does '||=' mean? It's from def current_cart if session[:cart_id] @current_cart ||= Cart.find(session[:cart_id]) #HERE!!! session[:cart_id] = nil if @current_cart.purchased_at end if session[:cart_id].nil? @current_cart = Cart.create! session[:cart_id] = @current_cart.id end @current_cart end Is this Rails issue? I thought it's some Ruby grammar thing, because I know there is an expression, '|='. Thanks in advance. soichi -- Posted via http://www.ruby-forum.com/.