Hi, I was attempting to send a variable from a controller to another
ruby file that I have in the root of my application. The thing is that I
can't send the value in any way.

I tryied using sessons, instance variables and I only get nils.

Someone know how to do this?

    session[:telefono_rem] = nil
    @envio = Envio.find params[:id]
    if @envio.telefono_remitente.nil?
        session[:telefono_rem] = '00000000'
    else
        session[:telefono_rem] = @envio.telefono_remitente
    end
    system("ruby " + PPAL + "WWW.rb")
===========================================================
WWW.rb

File.open(R, "a") do |f|
          f.puts "( WWW" + number.to_s
          f.puts "|||||||||||"
          f.puts "|||||: " + session[:telefono_rem].to_s
   end#open

With this code it does't print the last line.

-- 
Posted via http://www.ruby-forum.com/.