2012.02.29 @ 3:42 pm UTC
UPDATE: Based on some good Reddit discussions I’ve revised the “Only use ranges.” section to use a range with an exclusive end.
One of the gems I’m working on limits a range of data based on a datetime field. I use a SQLite database (version 3.7.7) in my automated testing, but ultimately it’s going to run on MySQL (version 5.5.19) and possibly others. The ease of SQLite makes this a fairly...
Read more »
2012.01.17 @ 2:48 pm UTC
All Rubyists should be familiar with the common definitions for include and extend. You include a module to add instance methods to a class and extend to add class methods. Unfortunately, this common definition isn’t entirely accurate. It fails to explain why we use instance.extend(Module) to add methods to an instance. Shouldn’t it be instance.include(Module)? To figure this out we’re going...
Read more »
2012.01.03 @ 4:22 pm UTC
The 0.3.0 release adds support for table captions and for default text in tables without data. Styling options were greatly increased especially in relation to columns. You can now add attributes to the header, column (via the col tag) and individual cells. Cell attributes can be either strings or procs. If you pass a proc it will evaluate for each cell.
<% t.column(:total,
cell_attrs: {style...
Read more »
2011.12.06 @ 11:20 pm UTC
The new version includes a complete rewrite of filters. I’ve made them a lot more like simple_form and I’m really happy with the result. You can get the latest code on github or take a look at the new wiki docs for more info.
Read more »