search for: rowsperpag

Displaying 1 result from an estimated 1 matches for "rowsperpag".

Did you mean: rowsperpage
2007 Jan 25
2
React on select_tag (onchange)
Hi, I''m new in developint rails (but I love rails). I would like to react on changing a field in the view (no model field) from a selection box to show the number of rows (which I used in the controller). In the controller I read the params-hash: ... @rowsperpage = params[''rowsperpage''].to_i ... In the view I have the field, where I like to react directly. ... <%= select_tag("rowsperpage", options_for_select( [[5, 5], [10,10], [25,25], [50,50], [100,100],[200, 200],[500, 500],[1000, 1000]], @rowsperpage ), :onchange=&gt...