>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

Quick fun tipQuick fun tip #1: Auto Complete with Ruby on Rails - entry rails search complete auto controller method index

 
Registered tutorials: 501
Registered Users: 22758



Rating: 5 out of 1 votes cast


  
Category: Ruby on Rails

Quick fun tipQuick fun tip #1: Auto Complete with Ruby on Rails

Digg this   Post to del.icio.us

Abstract: The tutorial shows how to organize auto Complete feature wityh Ruby on Rails

Since I got a melancholic and pensive in my last article I’ll reward you guys for sticking through it with a fun level 100 quick tip. (Something I hope to continue on the blog!) Everyone and their sister has a google suggest clone, right? And why not do it in Rails? I mean, it’s probably one of the easiest Ajax enabled controllers that you can do with Ruby on Rails so let’s take a look. I’ll assume you have a project already with something to search. Since we did a little mini-blog app recently we’ll use the original code sample project from that app. BTW- this is the original link, I’ll add the update at the bottom.

First off, a simple controller with one method: index
script/generate controller search index  

Now, open the index view and let’s add in some code to look for articles based on what the user passes in. First is the view to make this happen…

Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 149
Unique Hits: 117


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 0 0 0.6 0.7 1.3 1.5
Current 0 0 0 0 3 3
Previous 0 0 0 0 0 0
Jun 28 0 0 0 0 4 5
Jun 27 0 0 0 0 0 0
Jun 26 0 0 1 1 1 1
Jun 25 0 0 2 2 0 0
Jun 24 0 0 0 0 0 0
Jun 23 0 0 3 4 0 0
Jun 22 0 0 0 0 1 1
Jun 21 0 0 0 0 4 5
Highest 3 5 8 13 18 23


Script Execution Time: 0.28972 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2