I have a index of people on my site. There the users can see all the people the site knows about. So I have a view people/index.html.erb. I still haven’t done pagination yet – I’m not sure how’s the best way to paginate in rails – but for now I’m just showing the top 10 (which should be the first page someday).
The feature I want to do right now is a filter based on people’s properties. For now I’ll do a check list with those properties. The user must tick out whatever she doesn’t want. I’m not sure how would be the best approach here.
case 1) User first access to the page: Render the page like I do today, using index.html.erb.
case 2) User is viewing the page and unticks a property:
b) the controller (after consulting the model) returns a list of people using json
All the best,