Hi to all!!

I am new to ruby. I am trying to write a program to fetch the data from Database and written the data using pagination. I could get the data from DB. but pagination is not working. When i see the log file it is showing the following error.

NoMethodError: undefined method 'paginatior' #<Hash...>

Sounds like that should be paginator

collection = Sample::Models::sa::Customer.find_by_sql(sql) options={:per_page => 10 , Page => 1}

that probably wants to be :page