I came across this quick tip on how to reduce the size of your Rails log files. Over time, the development and test log might get bigger and bigger. A quick solution is to rotate your logs through the Rails Logger: config.logger = Logger.new(Rails.root.join(“log”,Rails.env + “.log”), 3, 5*1024*1024) This will rotate your log files every … Continue reading Rails Logger
Category: Development
All posts regarding programming & development
One of the main reasons I switched to Mac was the fact that the user interface is polished and I still maintain the power and freedom I find Linux. But one downside in Mac Terminal is that there is no standard syntax highlighting. So here is some info how I got to enable some basic … Continue reading Enable syntax highlighting in Mac OSX Snow Leopard
Finally, I found a nice solution for the RoR 2.2 MySQL problem. The initial problem was that the MySQL library isn’t bundled with RoR anymore, and you need to install it as a gem. No big deal at first, but we Leopard users are “plagued” with the fact that Apple has somewhat of an exotic … Continue reading Mac Leopard, ROR 2.2 and MySQL
I got some nice emails concerning my restful search and the Object-oriented approach to ActiveRecord posts. But a few of those mails had another thing in common. Some users find all the finder classes in the helper folder overwhelming, and they don’t like having them in the same folder as their view helpers. Well, the … Continue reading Create sub folders in your Rails application
During the development of my new project, I read a lot on the REST subject. In my opinion, it is a nice way of keeping your application clean and maintainable. But I stumbled upon a small problem when I had to implement a search for my resources. In all the examples you find on the … Continue reading RESTful search
Yesterday, I had to add some extra actions in my controllers, so I could view some charts. The problem was that Rails didn’t recognise the actions, because Rails sees you action name as an id. But Rails wouldn’t be Rails if it didn’t had a clever solution. Lets say you have a a resource called … Continue reading REST design with extra actions
One of my colleges (the main programmer for the company I work for) has created a nice post on creating dynamic search criteria in an object-oriented way using Rails ActiveRecord. You can find his post here. At first, I was a little out of balance, becouse I couldn’t realy see the advantage of it. But … Continue reading Object-oriented approach to ActiveRecord
As I was working on my new project, I was in need of a some breadcrumbs to implement on my site. Since I hate doing the same task over and over again, I looked for a ready to deploy plugin. After some googling, I quickly realised that a standard way of creating breadcrumbs is virtually … Continue reading Rails breadcrumbs
It has been a while since I posted something new. But I have a few articles in mind that I will post soon. The first one is something that I discovered a few days ago. The fantastic toolkit Google Gears that enables webapplications to work offline has met RoR. 2 students, Michael Marcus and Rui … Continue reading Google Gears meets Ruby on Rails
Jej, it is finally here. Firefox 3 is out. I was waiting a long time for this release. I didn’t use the beta or RC versions, so it was a bit hard to wait. But it was worth it. One of the main things I couldn’t wait for was the fact that FF 3 would … Continue reading Firefox 3 out now!