I recently looked at sample code for a controller in a rails project which included a method definition in a class without defining the name of the method like so:
def begin
redirect_to :action => :buy, :PaymentAction => params[:paymentaction]
rescue Errno::ENOENT => exception
flash[:error] = exception
redirect_to :controller => 'wppro', :action => 'exception'
end
Is this a way of defining a constructor in rails?