Posted almost 11 years ago by Henning Koch.

...will make ActiveRecord join the notes and authors tables and the query will fail: Mysql::Error: Column 'created_at' in order clause is ambiguous Unless you have a test covering...

Posted about 11 years ago by Arne Hartherz.

Occasionally some complex query must be processed on the database because building thousands of Ruby objects is impracticable.

Posted over 11 years ago by Arne Hartherz.

...and need to be sanitized. Unfortunately this works in SQLite but does not in MySQL: named_scope :filter, lambda { |attribute, value| { :conditions => [ 'articles.? = ?', attribute, value ] } } The solution is to use...

Posted over 11 years ago by Thomas Eisenbarth.

...the Rails 2.3.8 gem." you forgot to bundle Rails. If you see "Missing the mysql gem", bundle that as well. Add both Gemfile as well as Gemfile.lock to the repository...

Posted almost 12 years ago by Lexy. teddziuba.com

They don't teach you this in college, but the fundamental theorem of the software industry is the idea that...

Posted about 9 years ago by Henning Koch.

...I measured the runtime of different strategies using an average-sized Rails project (with MySQL): Cucumber RSpec Transaction 87.14, 86.65 10.20, 10.11 Truncation 90.43, 90.69 26.82, 26.46

Posted over 10 years ago by Henning Koch.

...BigDecimal('12.3413') gross = net * VAT_RATE # gross is now a BigDecimal ActiveRecord models represent MySQL's DECIMAL columns as BigDecimal attributes. Keep in mind that values assigned to such attributes...

This website uses short-lived cookies to improve usability.
Accept or learn more