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
Tag: ruby on rails
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
There is one plugin that I use in all my projects, and that is the Foreign Key Migrations plugin from RedHill. Defining foreign keys can’t become easier then this. Since as far as I know, Rails migrations don’t set foreign keys in your database, so this is the best solution. It uses SQL-92 syntax and as … Continue reading Rails and foreign keys
Since I started my new job, I had to learn Ruby On Rails in a real quick pace. My employer wanted to step up to the next level with the web applications the company developed. For that, they chose for Ruby On Rails, so off course, like I was the new kid in the house, … Continue reading Long live Active Scaffold