exceptionz

Thoughts on Technology, Methodology and Programming.

Archive for December, 2007

Ruby, Rails, TextMate

Posted by Marcus Wyatt on 24 December 2007

Ruby

Rails

TextMate

Technorati Tags: , ,

Powered by ScribeFire.

Advertisements

Posted in Rails, Ruby, TextMate | Leave a Comment »

ActionMailer – SocketError (getaddrinfo: Name or service not known) blues

Posted by Marcus Wyatt on 23 December 2007

I launched a new website a week ago and had issues with the action mailer setup used by restful_authentication. For some reason I was receiving the socket error and google wasn’t to helpful either.

So what was the problem?

Well, first I thought it was my setup of Postfix. But it turned out to be my settings for my action mailer. Anyways, the address should not point to your complete domain name, but rather to localhost. Here is the code snippet:

ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address => "localhost", # instead of "smtp.yourdomain.com",
:port => 25,
:domain => "yourdomain.com",
:authentication => :login,
:user_name => "user_name",
:password => "password"
}

Of course the ActionMailer settings should go into your environment.rb file (pre 2.0)

It is just very annoying that none of the docs or tutorials point this out….

Posted in Rails | 10 Comments »

Ruby, Rails, CSS, Tools, HTML

Posted by Marcus Wyatt on 14 December 2007

Ruby

Rails

CSS

Tools

  • XRAY – a bookmarklet you can use to see the box model for any element on any web page. (supports IE6, Safari, Firefox, Camino, etc.)

HTML

Technorati Tags: , , , ,

Powered by ScribeFire.

Posted in CSS, Rails, Ruby, Tools | Leave a Comment »

Rails plugins, CSS, SEO

Posted by Marcus Wyatt on 11 December 2007

Rails Plugins

CSS

SEO

Technorati Tags: , ,

Powered by ScribeFire.

Posted in CSS, Rails Plugins, SEO | Leave a Comment »

Ruby, Rails, TextMate

Posted by Marcus Wyatt on 10 December 2007

Ruby

  • Hash#select – Tips on using the Hash#select method to select the hash values you want and have those values in a new hash to work with.
  • Rak – a grep replacement in pure Ruby

Rails

TextMate

Technorati Tags: , ,

Powered by ScribeFire.

Posted in Rails, Ruby, TextMate | Leave a Comment »

Can it be? Rails 2.0.0 Release

Posted by Marcus Wyatt on 8 December 2007

After I grabbed the latest version of the Rails source code from svn and I noticed the tag *2.0.0* (December 6th, 2007) in the CHANGELOG. Does this mean I have the official Rails 2.0 source? Maybe, let’s see what DHH announces over the next couple of days.

It would be totally awesome to get the Rails 2.0 official drop over the silly season. Nice down time to explore and get into the new features. Anyways, I think the official release must be very close…

UPDATE:
Yeah, it’s released. Totally awesome!!! You can read more about it at DHH’s post and to get your grubby hands on Rails 2.0, just run gem install rails… Later dudes…

Technorati Tags:

Powered by ScribeFire.

Posted in Rails | Leave a Comment »

Ruby, Rails, API, TextMate

Posted by Marcus Wyatt on 7 December 2007

Ruby

Rails

API

TextMate

Technorati Tags: , , ,

Powered by ScribeFire.

Posted in API, Rails, Ruby, TextMate | Leave a Comment »

Ruby, Rails, Rails Plugins, JavaScript, CSS, Safari

Posted by Marcus Wyatt on 6 December 2007

Ruby

Rails

Rails Plugins

  • acts-as-subscribeable – add email subscriptions to various types of models like blog posts,
    comments, forum threads and more and wanted to have a single model
    handle all of it.

JavaScript

CSS

Safari

  • Safari Web developer tools – Actually, Safari provides advanced debugging tools for web developers. By default, it turns off. Run the command explained in the post to enable the tools.

Technorati Tags: , , , , ,

Powered by ScribeFire.

Posted in CSS, JavaScript, Rails, Rails Plugins, Ruby | Leave a Comment »

Rails, Rails Plugins, JavaScript, SEO

Posted by Marcus Wyatt on 3 December 2007

Rails

Rails Plugins

JavaScript

SEO

Technorati Tags: , , ,

Powered by ScribeFire.

Posted in JavaScript, Rails, Rails Plugins, SEO | Leave a Comment »

No rhtml, rxml, rjs or delegate template found for signup_notification in /*_mailer

Posted by Marcus Wyatt on 2 December 2007

If you are getting this error, don’t fret. Here is the solution to solve this problem. Put the following line somewhere close to the top of your mailer class:

YourMailer.template_root = File.dirname(__FILE__) + '/../views'

You should now be able to send those emails. I found the solution here. Thanks Miroslav…

You can also find more in depth information on what is causing the mailer to blowup from Miroslav’s post…

Powered by ScribeFire.

Posted in Rails | Leave a Comment »