I’m using RoR 1.0, Windows 2000, and SQL Server 2000. I am connecting to
the database using these directions:
Peak Obsession.
Using the scaffold generator to generate the default files (ruby
script/generate scaffold Location) I start up WebBrick and pull up the
page. There are 58 records in the table. I am given the first 10
records. No problem so far. Then I click the next page link - which
points to page 2 (page=2). I am presented with the same 10 records with
the same ten links. This continues for three more “next page” clicks for
a total of fifty. Then the really confusing part… on the the fifth
click I am only given eight of the same records.
In other words, Rails seems to know how many records there are but only
seems to be able to display the first 10 (or however many per page it’s
set for). All other functions (edit, new, show, etc) appear to work
correctly.
Any help would be appreciated.
- Eric