? Earlier 2 items total Later ?

On this page:?

Development Actionmailer setup problems

Has anyone been able to do this? My ActionMailer works fine when it's on barclay, but for developing locally I can't make a connection. I get:

Errno::ECONNREFUSED in Contact#index

Connection refused - connect(2)

/app/controllers/contact_controller.rb:6:in `index'


My isp doesn't block port 25:

[] % telnet barclay.textdrive.com 25
Trying 207.7.108.37...
Connected to barclay.textdrive.com.
Escape character is '^]'.
220 barclay.textdrive.com ESMTP Postfix
^]


And my ActionMailer config in config/environments/development.rb is this:

ActionMailer::Base.server_settings = {
  :address  => "barclay.textdrive.com",
  :port  => 25, 
  :domain  => 'http://station11.net/',
  :user_name  => "#{username}", # without @domain
  :password  => "#{password}",
  :authentication  => :plain
}

Rails new/add/delete helper

Call: @registered_user_functions( @photo )@, get ( new | edit | delete ) links.
  def registered_user_functions( item = nil, show_new = true )
    # abstract name of html#id to update with javascript
    update_name = item.class.to_s.downcase
    if @session[:user]
      a = "( "
      a << link_to( 'new', :action => 'new' ) + " | " if show_new
      if item # is given to edit or destroy...
        a << link_to_remote( "edit",
              {:url => { :action => "edit", :id => item },
              {:href => url_for( :action => "edit", :id => item ) },
              :update => "#{update_name}-#{item.id}" } )
        a << " | "
        a << link_to_remote( "delete",
              {:url => { :action => "destroy", :id => item },
              {:href => url_for( :action => "destroy", :id => item ) },
              :update => "#{update_name}-#{item.id}",
              :confirm => "really delete this #{update_name}?" } )
      end
      a << " )"
    end
  end

? Earlier 2 items total Later ?