Ajax - Basic highlighting example

Hi Mic,

If you want you highlightName Action to render a partial, you need to omit your redirect statement. Each action can only have one redirect or render statement. If you omit the redirect statement, the controller will look for an rhtml, rjs or rxml document in the folder associated with your controller.

In your case it would be app/views/test/highlight_name.rhtml

Put whatever rjs logic you want in there, and rails will take care of the rest.

Hope that helps

-josh