Tag: Ruby

Posts

20 September 2014 / Jens Grassel / Software
06 June 2014 / Jens Grassel / Software
10 June 2013 / Jens Grassel / Software
08 June 2013 / Jens Grassel / Software

To prevent the log files of a rails application to grow without limit you should setup log rotation. There are several ways to do this. Here is a simple solution using logrotate.

01 June 2013 / Jens Grassel / Software
24 May 2013 / Jens Grassel / Software
18 May 2013 / Jens Grassel / Software
02 March 2013 / Jens Grassel / Software

Since some time it seems to be somewhat impossible to install the ruby-debug gem into your rails app. The error message will most likely look similar to this one:

14 June 2012 / Jens Grassel / Software
11 June 2012 / Jens Grassel / Software

If you are using heroku you probably ran into some issues with rake assets:precompile. When using active admin bringing it’s assets into your app can also be quite tricky.

The method of precompiling your assets yourself and adding them to your git repository works for sure but it isn’t really best practice.

Another way to get the needed assets to be compiled is as follows:

10 June 2012 / Jens Grassel / Software
If you’re using cucumber you should be carefully examining your tests to make sure you’re really writing acceptance tests and not integration tests. While you can certainly write integration tests in cucumber that is mostly a waste of time because these are easier and faster to write with rspec and capybara. However I find cucumber a nice tool for the implementation of acceptance tests.
09 June 2012 / Jens Grassel / Software
04 June 2012 / Jens Grassel / Software

Sometimes you’ll want to remove all ruby gems from your system. This is very easy (at least under unix like operating systems). Just issue the following command: