Displaying 1 result from an estimated 1 matches for "filter_by_synset_offset".
2006 Aug 01
1
Re-using a Listing screen form
...the Listing
page, it would be nice to allow the user to display a subset of the
records, for example, by filtering.
For example, I have the following Controller Listing and Filtering
actions:
def list
@eng_sense_pages, @eng_senses = paginate :eng_senses, :per_page =>
10
end
def filter_by_synset_offset
@eng_senses =
EngSense.find_by_synset_offset(params[:synset_offset])
if @eng_senses
redirect_to :action => ''list''
else
flash[:notice] = "Unable to find English synset offset:
#{:synset_offset}"
end
end
However, the resulting displ...