You should create an own action for this, associated with it's own view. Then, be sure to disable rendering of the layout.
You should create an own action for this, associated with it's own view. Then, be sure to disable rendering of the layout: def more_users @users = User. Page(params:page).
Per(10) render :layout => false end.
Yep, this would be a more_users action in the user's controller. An easy match route would do it, I think: match 'users/page/:page' => "users#more_users". The view for this action should only contain what you want to append to your div.
– dhoelzgen Apr 5 at 6:25 sorry I delete my comment :) I am gonna try this. However I need a layout for what it append in my div. Would it work?
Thank you! – benoitr Apr 5 at 6:30 You are welcome :) – dhoelzgen Apr 5 at 6:31 I did it! But now I am facing with 2 problems: 1.) I need to display a minimum layout (not the entire layout page but something like: 2.
) How can I display this in my users/index.html. Erb as the more_users.html. Erb view is not a partial?
– benoitr Apr 5 at 6:55 Not sure if it's the best way, but I think using a _users_page.html. Erb partial used both in your index.html. Erb and more_users.html.
Erb would do it. I'm not sure if I get the first problem right, but you could add this in the _users_page.html. Erb partial, or in the more_users.html.
Erb, depending of you want it around every entry in the list, or around the reloaded part of the list. – dhoelzgen Apr 5 at 7:06.
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.