background preloader

Ruby

Facebook Twitter

Rails. Le langage Ruby. Ruby France. Mongoid. Professional Screencast Tutorials for Web Developers and Alpha G. How to paginate, sort and search a table with Ajax and Rails · d. Introduction and warnings Important warning : unfortunately, I don't have the opportunity to work on Rails anymore these days. So some points in this tutorial may be a bit outdated for the most recent versions of the framework. In this tutorial, we will try to use Ajax with Rails in order to display a table of items with several functionalities : pagination (split the table on several pages)sorting (table ordering by one of its column)searching (selecting items to be displayed with a query) A live demonstration of this application is available at : This is a very common task in web application development.

The code which follows is highly inspired from several Rails wiki pages, in particular How to make a real-time search box with the Ajax helpers, and How to paginate with Ajax. Now, the warnings. In any case, don't hesitate to send me your feedbacks at the following address : Application installation and configuration Requirements Files Database $ rake db:migrate. Ruby Inside | Josh Huckabee. Cinch: The IRC Microframework. Rubygame. A Small Orange | Web Hosting. Pashua - Carsten Blüm: Mac Development. Download Version: 0.9.5 (01/19/2014) 1.29 MB Mac OS X 10.6 or higher Processor: Intel Pashua is a tool for creating native Aqua dialog windows from programming languages that have none or only limi­ted support for graphic user inter­faces on Mac OS X.

Currently, it supports Apple­Script, Perl, PHP, Python, Groovy, Rexx, Ruby, shell scripts and Tcl—and if your favourite language is not included in this list: writing the glue code for communicating with Pashua is pretty simple. The GUI elements which can be used for such dialogs include text in­put fields (single-line and multi-line), check­boxes, radio­buttons, combo boxes, popup menus, open panels or buttons. Moreover, it's possible to embed images or PDFs. Any data submitted from the dialog will be passed on to the calling script, which can (of course) use it for anything.

Screenshot An example Pashua dialog on Mac OS X 10.7 Three example windows on an older version of Mac OS X To define the dialog window, Pashua uses a very simple syntax. Sinatra.