Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
def add_space_to_cart @cart = find_cart @space = Space.find(params[:id]) if verify_amca_user && !space.reserved @current_item = @cart.add_space(space) @res = Reservation.new(:user_id => @user.id, :space_id => space.id, :temp_res_datetime => Time.now) if @res.save @space.reserved = true @space.save end end @spaces = Space.find_available_spaces if request.xhr? render :text => 'works' else redirect_to_index end end
This paste will be private.
From the Design Piracy series on my blog: