[Celerity-users] Default to { :index => first } ?

Ashley Moran ashley.moran at patchspace.co.uk
Wed Sep 9 10:59:37 EDT 2009


Hi

Just noticed that some elements are unique, but (although I may be  
missing an easy way) Celerity makes you write a more verbose finder.   
The one we came across was this:

   @table.thead.cells

This doesn't work.  Instead, you have to write:

   @table.thead(:index => 1).cells

Three questions:

- is there a short way of writing this?

- would it be useful for the former to be an synonym for the latter?

- if not and if so, is it worth filing a ticket for?

Cheers
Ashley


-- 
http://www.patchspace.co.uk/
http://www.linkedin.com/in/ashleymoran
http://aviewfromafar.net/









More information about the Celerity-users mailing list