Rails sms_fu error
brendan lims instructions for setting up the sms_fu gem say run either

    sms_fu = SMSFu::Client.configure(:delivery => :action_mailer)
or

    sms_fu = SMSFu::Client.configure(:delivery => :pony, :pony_config => { :via => :sendmail })

or

    PONY_CONFIG = { 
     :via => :smtp, 
     :via_options => {
     :address              => 'smtp.gmail.com',
     :port                 => '587',
     :user_name            => 'username',
     :password             => 'password',
     :authentication       => :plain, 
     :enable_starttls_auto => true,
     :domain               => "localhost.localdomain"
    }}
    sms_fu = SMSFu::Client.configure(:delivery => :pony, :pony_config => PONY_CONFIG)

I tried the first (assuming actionmailer is set up by default, maybe thats wrong). Then the second (after installing pony and mailing something to be sure it works, which was fine) and the last. No errors show in anthing above. The instructions say after this set up, a command like this is supposed to work

    sms_fu.deliver("5558675309","at&t","message")
In all set ups i get this error

    NameError: uninitialized constant RAILS_ROOT
	from /Users/name/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/gems/sms_fu-1.1.2/lib/sms_fu/sms_fu.rb:102:in `template_directory'
	from /Users/name/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/gems/sms_fu-1.1.2/lib/sms_fu/sms_fu.rb:55:in `config_yaml'
	from /Users/name/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/gems/sms_fu-1.1.2/lib/sms_fu/sms_fu.rb:65:in `from_address'
	from /Users/name/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/gems/sms_fu-1.1.2/lib/sms_fu/sms_fu.rb:41:in `deliver'
	from (irb):28
	from /Users/name/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/gems/railties-3.1.0/lib/rails/commands/console.rb:45:in `start'
	from /Users/name/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/gems/railties-3.1.0/lib/rails/commands/console.rb:8:in `start'
	from /Users/name/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/gems/railties-3.1.0/lib/rails/commands.rb:40:in `<top (required)>'
	from script/rails:6:in `require'
	from script/rails:6:in `<main>'
Rails sms_fu error
===

brendan lims instructions for setting up the sms_fu gem say run either

    sms_fu = SMSFu::Client.configure(:delivery => :action_mailer)
or

    sms_fu = SMSFu::Client.configure(:delivery => :pony, :pony_config => { :via => :sendmail })

or

    PONY_CONFIG = { 
     :via => :smtp, 
     :via_options => {
     :address              => 'smtp.gmail.com',
     :port                 => '587',
     :user_name            => 'username',
     :password             => 'password',
     :authentication       => :plain, 
     :enable_starttls_auto => true,
     :domain               => "localhost.localdomain"
    }}
    sms_fu = SMSFu::Client.configure(:delivery => :pony, :pony_config => PONY_CONFIG)

I tried the first (assuming actionmailer is set up by default, maybe thats wrong). Then the second (after installing pony and mailing something to be sure it works, which was fine) and the last. No errors show in anthing above. The instructions say after this set up, a command like this is supposed to work

    sms_fu.deliver("5558675309","at&t","message")
In all set ups i get this error

    NameError: uninitialized constant RAILS_ROOT
	from /Users/name/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/gems/sms_fu-1.1.2/lib/sms_fu/sms_fu.rb:102:in `template_directory'
	from /Users/name/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/gems/sms_fu-1.1.2/lib/sms_fu/sms_fu.rb:55:in `config_yaml'
	from /Users/name/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/gems/sms_fu-1.1.2/lib/sms_fu/sms_fu.rb:65:in `from_address'
	from /Users/name/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/gems/sms_fu-1.1.2/lib/sms_fu/sms_fu.rb:41:in `deliver'
	from (irb):28
	from /Users/name/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/gems/railties-3.1.0/lib/rails/commands/console.rb:45:in `start'
	from /Users/name/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/gems/railties-3.1.0/lib/rails/commands/console.rb:8:in `start'
	from /Users/name/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/gems/railties-3.1.0/lib/rails/commands.rb:40:in `<top (required)>'
	from script/rails:6:in `require'
	from script/rails:6:in `<main>'