search for: link_pages

Displaying 3 results from an estimated 3 matches for "link_pages".

Did you mean: lim_pages
2005 Aug 04
1
Pagination and :include (eager associations)
I have tried to use eager association with pagination, but the :include option is not supported: Here''s the one-line pagination call without :include @link_pages, @links = paginate :link, :per_page => 10, :order_by => sort_clause and here the work around, using the "classic" method # @link_pages = Paginator.new self, Link.count, 10, @params[''page''] # @links = Link.find_all nil, sort_clause, @link_pages.current.to_...
2007 Jun 06
1
highlight and pagination
I made a search-field which shows all hits and highlights the all words searched for: def suche if params[:link][:suchfeld] == "description" @description = "show" @highlight = params[:suche] end @link_pages, @links = paginate :link, :order_by => ''url'', :conditions => ["#{params[:link][:suchfeld]} LIKE ?", "%"+params[:suche]+"%"], :include => [:member], :per_page => 3 end view: <% if @de...
2006 Jan 23
2
del.icio.us-like output
I''m trying to build a page similar to a delicious page that is a listing of your bookmarks in this format: 1. Querying serialized data in ActiveRecord<http://www.karmiccoding.com/articles/2005/11/29/querying-serialized-data-in-activerecord> Hack to search serialized fields to rails <http://del.icio.us/djsodom/rails> ... and 4 other