# Will\_paginate with :select

**URL:** <https://www.ruby-forum.com/t/will-paginate-with-select/173944>\
**Category:** Rails\
**Created:** [August 18, 2009, 4:23pm UTC](https://www.ruby-forum.com/t/will-paginate-with-select/173944 "2009-08-18T16:23:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aldoitalo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@aldoitalo](https://www.ruby-forum.com/u/aldoitalo)\
**Post date:** [August 18, 2009, 4:23pm UTC](https://www.ruby-forum.com/t/will-paginate-with-select/173944/1 "2009-08-18T16:23:42Z")

</div>

i have tryed to use:

@my\_object = Myclass.paginate(:select =\> “id, title, position”, :page =\>  
params[:page]||false, :per\_page =\> @value\_per\_page )

but the query exctract all the fields.  
what is the right sintax to obtain only specified fileds?
