17 May 15:34
File.new variable with extension
From: GA Gorter <rails-mailing-list@...>
Subject: File.new variable with extension
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-05-17 13:38:12 GMT
Subject: File.new variable with extension
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-05-17 13:38:12 GMT
I ned to create a file of the name of a variable?
but i can't create an extension.
File.new((@page.title), 'w' ) {|file| file.write( 'testfile' )}
how can i maka a extension like this
File.new((@page.title.txt), 'w' ) {|file| file.write( 'testfile' )}
--
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
RSS Feed