would ARGV.join(" ") help?

Ruby is using to_s behind the scenes. Calling to_s on an array returns
the values concatenated together in a string

>> [1,2,3].to_s
=> "123"

On Sep 27, 9:35 pm, Max Dev <[EMAIL PROTECTED]> wrote:
> I have a script with which I want to create a rails app.
>
> Then not something like:
>
> $ rails -d mysql name_app
>
> in terminal, but from the script.
>
> In the script I get the app name, database etc.
> After some operations I would like to create the app from the script,
> but when I try something like
>
> `rails"#{ARGV}"`
>
> where ARGV = name_app-d mysql
>
> creates the app with a name like name_app-dmysql.
>
> How can I pass ARGV to successfully create the app?
> Thank you
> --
> Posted viahttp://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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to