There has been one thing that most people overlook after deploying their Rails / web app, and that’s log-ration. I have to admit, it’s something that I overlooked myself for quite some time. When using capistrano for deployment, your production log gets stored in the share folder, so the same log stays available after updates. … Continue reading Rails log-rotate
Tag: ruby on rails
So we’ve installed ruby as described in my previous post. But we are nothing with only a ruby installation. To serve our ruby / rails apps, we’ll need a webserver. Until last year, I always used Apache to do the heavy lifting. But after some research, I decided to make the switch to Nginx. Either … Continue reading Nginx and passenger install in production environment
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
For some of you that don’t know this yet (don’t be ashamed of yourself, I only heard about it a a few months back), Rails 2 recommends a new file extension for your template file. At this point, everyone was using template extensions like: .rhtml .rxml .rjs To unify the template files, the Rails developers … Continue reading Rails new template file extensions