hello all,
any one known how to do paging in ror
hello all,
any one known how to do paging in ror
Wap A. wrote:
hello all,
any one known how to do paging in ror
there is a wonderful plugin called “will_paginate”. Installation is
simple,
start using it in your view like this
for c in @collection
end
<% will_paginate @collection %>
Rails L. wrote:
Wap A. wrote:
hello all,
any one known how to do paging in ror
there is a wonderful plugin called “will_paginate”. Installation is
simple,
- copy the plugin to your plugin folder.
- use - require “will_paginate” in your environment.rb
start using it in your view like this
view:
for c in @collection
end
<% will_paginate @collection %>
i was followed your step but i got will_paginate undefined method
`will_paginate’ for #ActionView::Base:0x46d0098 my code is below
Name | ||||
---|---|---|---|---|
<%=h image.name %> | <%= image_tag image.name,:alt =>image.name,:size=>'100x100'%> | <%= link_to 'Show', image %> | <%= link_to 'Edit', edit_image_path(image) %> | <%= link_to 'Destroy', image, :confirm => 'Are you sure?', :method => :delete %> |
Hi
please read the example usage here at home
Sijo
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs