Kaminari: paginate a scoped model. Controller/View responsibility?

Your show method should look like this: def show @posts = Category. Find(params:id).posts. Page(params:page) end And in view: @posts.

Each do |post.

Methyl. I still need access to the @category (to make a title, etc). Should I just make two instance variables: @category and @posts?

– bassneck Apr 30 at 20:56 Yes, you can do it and it will be totally clean and ok. – methyl Apr 30 at 21:12.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions