Ajax Scaffold on Rails with SQL Server

I was working on Rails today.

Using SQL Server isn't the nicest thing, with Rails... support is sub-par, but growing. One nastiness I ran into today was after installing ajax_scaffold_generator, having exceptions thrown when it comes to showing the list view. So... I dug around and discovered that sqlserver_adapter (part of activerecord) was recently patched to fix some pagination problems. So I grabbed the new version and put it in place:


Then you can install the package:

ruby gem install ajax_scaffold_generator

...when it's done, run (in your project directory):

ruby script/generate ajax_scaffold Object

(or whatever object you want instead of "Object".)

Very nice.

No comments: