This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ===================================================================================================== | |
# Template for generating a callback example | |
# ===================================================================================================== | |
# Requirements: | |
# ------------- | |
# | |
# * Ruby >= 1.9.3 | |
# * Rails >= 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ===================================================================================================== | |
# Template for generating an authentication example | |
# ===================================================================================================== | |
# Requirements: | |
# ------------- | |
# | |
# * Ruby >= 1.9.3 | |
# * Rails >= 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ===================================================================================================== | |
# Template for generating a geocoder gem test app | |
# ===================================================================================================== | |
# Requirements: | |
# ------------- | |
# | |
# * Ruby >= 1.9.3 | |
# * Rails >= 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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) |