By default Haml will downcase and underscore the class name. So ForumPost will become forum_post. You can control the generated string by overriding the #haml_object_ref method...

...IBUS_ENABLE_SYNC_MODE=1 /home/arne/rubymine/bin/rubymine.sh This seems fix issues on RubyMine 8. The benefit of an extra launcher file is that you can upgrade RubyMine and don't have...

...SD-Card on my Mac, then I will see those nasty resource fork files (beginning with "._") for every file and folder on my car stereo. In most cases those resource...

Note: Consider not doing this. Use form models or vanilla methods instead. The :conditions option for Rails associations cannot take...

So you downloaded a theme for Chrome a while ago and don't remember which one it is?

Today I ran into trouble installing therubyracer on Ruby 1.8. The installation failed with *** extconf.rb failed *** Could not create Makefile...

if evaluator.name instance.first_name, instance.last_name = evaluator.name.split(' ') end end end Explanation: transient attributes behave like attributes, except that they aren't assigned to the record. By defining the transient...

Imagine you have a list you want to render inline on large screens, but stacked on small screens. high

Ruby's mathn library changes Fixnum division to work with exact Rationals, so 2 / 3 => 0 2 / 3 * 3 => 0...

When you register a delegated event using on (or the deprecated delegate / live), it is somewhat hard to manually trigger...

The rendered font often depends on the local font your system provides, therefore you often find a rule like below...

While you can use Apache as a reverse proxy, it tries to be too smart. Try nginx instead, it's...

On recent/fresh installations of Ruby 1.8.7 you may encounter this error why calling any bundled binary (or just bundle exec...

The following snippet demonstrates how you could create excel files (with spreadsheet gem) and format columns so that they follow...

stackoverflow.com

With ngAnimate, you can easily animate certain events (see directive support). We'll make use of ngClass animations to style...

github.com

We have a new gem Minidusen which extracts Dusen's query parsing and LIKE query functionality. Minidusen can no longer...

#reverse_order does not work with complex sorting constraints and may even silently create malformed SQL for rails < 5.

makandra dev

Sometimes your code has long lines: describe 'foo' do describe 'bar' do really_long_line_really_long_line_really_long...

...managed by nova-compute. I didn't manage to find the cause of this behaivour yet, but I think it has something to do with the start order of the...

Watch out when saying something like 1.year in Rails. The result is not a Fixnum and can cause unexpected errors...

makandra dev

There is no good equivalent for the Unix sudo command in Windows. Below are a few workarounds that are all...

We sometimes send calender data or tasks using iCalendar (ICS) via eMail as specified in RFC 5545. Recently, a customer...

Internet Explorer 5+ is aware of conditional comments that let you target HTML for selected versions of IE. For example...

Ruby's regular expressions can be represented differently. When serializing them, you probably want to use inspect instead of to...