Skip to content

Instantly share code, notes, and snippets.

diff --git a/app/controllers/albums_controller.rb b/app/controllers/albums_controller.rb
index 813b51f..10834cd 100644
--- a/app/controllers/albums_controller.rb
+++ b/app/controllers/albums_controller.rb
@@ -4,12 +4,23 @@ class AlbumsController < ApplicationController
# GET /albums
# GET /albums.json
def index
- @albums = Album.all
+ params[:page] ||= "1"
# =====================================================================================================
# Template for generating a callback example
# =====================================================================================================
# Requirements:
# -------------
#
# * Ruby >= 1.9.3
# * Rails >= 4
# =====================================================================================================
# Template for generating an authentication example
# =====================================================================================================
# Requirements:
# -------------
#
# * Ruby >= 1.9.3
# * Rails >= 4
# =====================================================================================================
# Template for generating a geocoder gem test app
# =====================================================================================================
# Requirements:
# -------------
#
# * Ruby >= 1.9.3
# * Rails >= 4
@ezrarush
ezrarush / udp-userial-test
Created January 27, 2015 16:28
Shows an error with usocket' datagram socket sending userial buffers on SBCL 1.2.1 Windows 8.1
;; using userial with usocket's datagram socket causes an intermittent error.
(ql:quickload "usocket")
(ql:quickload "userial")
(defun server-main ()
(let ((socket (usocket:socket-connect nil
nil
:protocol :datagram
:element-type '(unsigned-byte 8)