The consulting company that I work for, MomentumSI, has published an article on SysCon’s Enterprise OpenSource Magazine entitled “Bringing Ruby to the Enterprise.” Brad, along with a few Ruby consultants like myself, combined our experience and research to let enterprises know that Ruby and Rails can provide a competitive advantage in many situations. Let us [...]
Dave Thomas, that Pragmatic Programmer and Ruby Guy, is coming to Austin on Thursday, July 6th from 7-9pm. More information can be found at the Austin on Rails website. Drop me a note if you are going so we can meet up.
Look no further than Obie Fernandez of ThoughtWorks for stories on Rails successes, as well as some great tips for deploying Rails in your organization:
I presented a talk at RailsConf 2006 named “ThoughtWorks on Rails” and I tried to really answer the question: Is anyone doing real projects with Ruby on Rails? And by [...]
As with any project, you start to see patterns and decide to refactor. One common pattern I was seeing was the need to load a model by ID for quite a few of my controller’s actions. Here is the code I wanted to refactor:
if params["id"]
begin
[...]
No Fluff Just Stuff – Ruby and Rails, myths and half truths is a great article by Bruce Tate that debunks some of the FUD around Ruby and Rails. Here is a summary of his myth-busting:
1. Rails can be all things to all people.
2. Ruby on Rails has not been proven scalable.
3. Rails is just [...]
It can be difficult to track down Ruby on Rails ActionMailer issues. If you are in the development environment (i.e. not production), change the following setting in your config/environments/development.rb:
config.action_mailer.raise_delivery_errors = true
This will allow you to have errors raised for catching and display (or falling into the default error-trapping routines).
If you then see the error [...]
InfoQ is a new service by Floyd Marinescu that provides news feeds about all that is happening across Java, Ruby, .Net, Agile, and SOA (Think of TSS for multiple platforms). This is great for technical leads that have to deal with multiple technologies on their projects (like myself) or those that want to keep up [...]
sbecker has a great post with some of the most common domain relational patterns needed for Rails apps. Examples include CRM, e-commerce, roles-based access, mailing lists, surveys, content/blogs, and social networking.
I stumbled across a great resource for using regular expressions to validate different types of data. Here is a subset of the list that I found most useful:
EMAIL:
^[\w\-\+\&\*]+(?:\.[\w\-\+\&\*]+)*@(?:[\w-]+\.)+[a-zA-Z]{2,7}$
CREDIT CARD:
^((4\d{3})|(5[1-5]\d{2})|(6011))-?\d{4}-?\d{4}-?\d{4}|3[4,7]\d{13}$
MAC ADDRESS :
^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$
IP ADDRESS :
^\b((25[0-5]|2[0-4]\d|[01]\d\d|\d?\d)\.){3}(25[0-5]|2[0-4]\d|[01]\d\d|\d?\d)\b$
REASONABLE DOMAIN NAME:
^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$
For Ruby, you can use String::match method to determine if any results were [...]
Recent Comments