Posted by Marcus Wyatt on 24 December 2007
Posted in Rails, Ruby, TextMate | Leave a Comment »
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 | 7 Comments »
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: Ruby, Rails, CSS, Tools, HTML
Powered by ScribeFire.
Posted in CSS, Rails, Ruby, Tools | Leave a Comment »
Posted by Marcus Wyatt on 11 December 2007
Posted in CSS, Rails Plugins, SEO | Leave a Comment »
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: Ruby, Rails, TextMate
Powered by ScribeFire.
Posted in Rails, Ruby, TextMate | Leave a Comment »
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: Rails
Powered by ScribeFire.
Posted in Rails | Leave a Comment »
Posted by Marcus Wyatt on 7 December 2007
Posted in API, Rails, Ruby, TextMate | Leave a Comment »
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: Ruby, Rails, Rails Plugins, JavaScript, CSS, Safari
Powered by ScribeFire.
Posted in CSS, JavaScript, Rails, Rails Plugins, Ruby | Leave a Comment »
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 »