Recently, I've been making web sites by using Merb.
It was like a battle lacking logistics.
I made and released dm-paginat
Yes, I know dm-is-pagi
You can easily paginate, like this:
1 class Posts 2 def index 3 @posts = Post.paginate(:page => params[:page]) 4 end
Links will be drawn by calling simple helper method.
1 <ul> 2 <% @posts.each do |post| %> 3 <li><%= h(post.body) %></li> 4 <% end %> 5 </ul> 6 <%= paginate @posts %>
merb_slice
You can generate controller
1 % slice-gen controllertop
it generates controller
In addition, there are other gems I made.