Monthly Archives: August 2010

Lone Star Ruby Conference 2010

DejaVu! You usually say that when you attend the same conference twice ;) – At Lone Star, its always an new experience. Last year I was an attendee, this year I presented a talk and I thoroughly enjoyed myself. There … Continue reading

Posted in Conferences, Ruby on Rails | Tagged | 2 Comments

Zipcode validation using geokit in rails

1.Install geokit gemgem install geokitOR # Add following line inside rails initialize blockRails::Initializer.run do |config| config.gem ‘geokit’endAnd then run commandrake gems:install2. Consider User model with zipcode as attribute fieldinclude Geokit::Geocoders class User :zipcode private def request_zipcode_validation_using_geokit # Method request google … Continue reading

Posted in Ruby | Leave a comment

ActionMailer SMTP settings in rails

1. Add following line to rails environment file ActionMailer::Base.delivery_method = :smtp2. Include your email authenticationCreate a ruby file called smtp_settings under config/initializers directory# config/initializers/smtp_settings.rbActionMailer::Base.smtp_settings = { :address => “smtp.gmail.com”, :port => 587, :authentication => :plain, :enable_starttls_auto => true, :user_name => … Continue reading

Posted in Ruby on Rails | Tagged | Leave a comment