I agree with Dave - this is probably the easiest way to do it.

However, if your requirements to this table are expected to grow (like
Sorting, filtering on arbitrary content, row-selections etc.) you may
want to take a look into DataTables(http://datatables.net/)  . I'm
using for almost all of my tabular data, as it gives you so much
functionality for free and is painless to integrate (Although it may
be a terrible overkill in your case right now...)

cheers
Stefan


On 22 Feb., 15:15, Dave Aronson <[email protected]>
wrote:
> On Wed, Feb 22, 2012 at 01:57, Tony N. <[email protected]> wrote:
> > I want to used 3 radio buttons (named "Avertissement",
> > "Information", "Urgent"). While one of the buttons is clicked, the table
> > only displays the matching lines.
>
> Sounds like a job for JavaScript adding and removing visibility on the
> items, possibly via setting whether CSS says their particular classes
> are visible or not.  Also I'd recommend an "All" option.
>
> -Dave
>
> --
> Dave Aronson:  Available Cleared Ruby on Rails Freelancer
> (NoVa/DC/Remote) -- seewww.DaveAronson.com, and blogs 
> atwww.Codosaur.us,www.Dare2XL.com,www.RecruitingRants.com

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to