Archive for the ‘ruby on rails’ Category

The True Secret to a Better Google Page Rank

Tuesday, May 20th, 2008

The bottom line is people have to like you and more importantly link to you. Check out Memo (Courtesy of 37 Signals, SVN Blog)
A couple of lines of code, 1 image, No SEO, No Meta Tags, and a Google Page Rank of 4. Here is the entire website:

<html>
<head>
<title>memo</title>
</head>
<body>
<center>
<br><a href="mailto:info@memo-ny.com"><img src="memo_12_07_1.jpg"
alt="memo a graphic design firm located at 156 Fifth Avenue, 10th Floor,
New York City, NY 10010 (212) 915-7135 info@memo-ny.com" height="1820" width="680" 
border="0"><br><img src="memo_12_07_2.jpg" alt="Memo Productions www.memo-ny.com" 
border="0" height="15348" width="680"></a><br>&nbsp;
</center>
</body>
</html>

Ruby on Rails 2.0 – Scaffolding is Gone!!!

Friday, May 9th, 2008

Scaffolding is gone? Well… sort of.
In Rails 2.0 the method scaffold is gone from the ActionController::Base so there is no dynamic scaffolding.

So what is a developer to do?
You could uninstall Rails 2.0 and downgrade to an older version of Rails, but what is the fun in that?

Our hats are off to Leonardo Borges for saving us from Rails 2.0 frustration, or worse – starting from scratch.

Now that the dynamic scaffold is gone, we’re left with the static one.
Ok, let’s try it then:

$ script/generate scaffold contact

And it won’t work again! ;) At the end of the output, you will get something like this:

Another migration is already named create_contacts: db/migrate/001_create_contacts.rb

It really means that if your model is meant to be used by a scaffold, you better generate it in the same line. It will fail, afaik, if the model previously existed. Destroy your model and controller, and execute the following:

$ script/generate scaffold Contact name:string email:string

Done! Just run your migrations, startup your server and your new scaffold in rails 2.0 will be working gracefully!

Django vs Rails

Thursday, May 8th, 2008

Just poured one out for the “homies”.

Long live BASIC and the summer of ‘83. Long live Computer Camp!

Chalk One up for Django – The Rails vs Django Faceoff is Kicked up a Notch

Wednesday, April 30th, 2008

The web app platform Rails, built upon the Ruby framework, has enjoyed a rocketing lead in the publicity arena with all the press generated by 37 signals and their opinionated founders. In contrast, Django, built upon the python language has gained popularity while staying out of the limelight.

Over the past month the tide has begun to turn thanks to the help of Google. When Google’s Application Engine is released to the general public it will run on the python language and come pre-installed with Django.

While Google is considering offering other languages at a later date, at this point Python and Django are the Belles of the Ball.

Django and Rails – The Height of Functionality. The Product of Creativity

Tuesday, April 15th, 2008

At Nimbletoad we use Django, built on the Python framework, and Rails, built on Ruby, everyday to speed up web development. While our staff is equally divided between the two framework’s and endless debates ensue as to which is better, no one argues their merit.

Rails and Django, creations of David Heinemeier Hansson and Adrian Holovaty respectively, allow web developers to program and deploy web applications in a fraction of the time.

The key here is that their creations ride on top of existing programming languages. Without them, Web development would still take place. The end results would be the same. However, these two guys saw a way to create frameworks that would further boost functionality.

Functionality is the desired result, While Creativity the guiding force.

Just as David and Adrian stood on Ruby and Python’s shoulders, web development companies such as Nimbletoad stand and build upon the creations of David and Adrian.

Joining the Club – The Web Install Learning Curve

Wednesday, April 9th, 2008

Dramatic recreation of the Web App install learning curve.

1st attempt – WTF errors everywhere

Go to forums. Nothing

“WTF”

Try again.

Reread the install process.

Bang your head and wonder, “why is there not better documentation?”

Swear you’ll post a forum solution, if you can find the answers

Try again

Try again

And Try again

Briefly consider looking at the code

Quit, Start up again.

Suddenly, a Duh moment. The program installs like butter with zero errors.

How quickly we change

Instantly a new mindset – A monkey could do it.

Forums? “Screw it, if these lame asses can’t figure it out, they don’t deserve to run it.”

How quickly we forget.

I’ve been installing web apps for years. Bottom line is they are all quirky. Most installs are 98% frustration and 2% euphoria.

Our goal for Nimbletoad is to reverse this ratio.