Hi all, I'm new to Rails, and I don't know what is all the rails power, so i think that the things that I'm trying to do can be much simpler using some rails features well my problemn is this. I have a view that I render it partial in other view like my main view my partial view my partial view have some form fields, and my main view is a list of registers that comes from the database. this registers are paginate using ... I use the my partial view 'form' to filter my registers, like date > somedate, descriptions like '% .. . . mycontroller is like this def list if params['filter'] paginate with filters else paginate with all registers end end so, How fill my partial view form fields, with the post parametes, I really need to se it's value? {:value = params['filter']['myformfield']} , or I can do some other thing? and when I click in the next page, It's lost all filters, I think it is because the my partial view form is not submited, but how to keep my filters? tks folks! |
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs