Category Archives: Rails

Learning Rails 3

Update: I have since been able to review the first edition (with complete content). The Rails 3 framework has brought quite a lot of new, sexy features which in turn has prompted many people to learn to use the framework. … Continue reading

Posted in Rails | Comments Off on Learning Rails 3

Adding a namespaced Rails generator to a standalone Ruby gem

I wanted to add a generator to the SugarCRM ruby gem, but couldn’t find any straightforward resources on doing just that: taking a standalone ruby gem, and adding a generator that is available from within a Rails environment. To make matters … Continue reading

Posted in Rails, Ruby, SugarCRM Ruby gem | 2 Comments

Contributing to open source

Although contributing to open source projects now seems natural to me, there was a time when it was quite daunting and I had no idea where to start. Here, I’ll guide you through the steps I took to add some … Continue reading

Posted in Rails | Comments Off on Contributing to open source

Self-marking required fields in Rails 3

In a Rails 3 project I’m currently working on, I wanted to mark required fields automatically: if the model required the field to be present (via validates :presence => true or validates_presence_of), that field in the form would automatically be … Continue reading

Posted in Rails | 19 Comments

Implementing a public API in Rails 3

As you’re probably aware, Rails helps out a lot when using generators: in addition to generating the views, it also provides XML access to data. What we’ll cover today is implementing a basic public API that can be consumed from … Continue reading

Posted in Rails | 10 Comments

Ruby Gem for SugarCRM: Ruby on Rails Integration

Having gone over the basics in a previous article, we will now cover how you can get a basic Rails 3 app (using the SugarCRM Ruby gem) up and running. (The SugarCRM Ruby gem relies on ActiveSupport >= 3, and … Continue reading

Posted in CRM, Rails, Ruby, SugarCRM Ruby gem | 4 Comments