Can't try it out because I can't reach my development machine and I did not
need such behavior but intuitively I would try

"'" + array.join("','") + "'"

it is " followed by ' for opening and vice versa for closing. The ' in the
resulting string at the beginning and the end had to be added manually by
adding "'".

HTH
Norbert

Top posted from android

Am 17.02.2011 05:55 schrieb "loganathan sellappa" <[email protected]>:
> Hi all,
>
> array=["api","api2"]
> array.join(',')
> i get ''api,api2"
> wat i want is 'api','api2'
>
>
>
> how can i get it
>
> --
> 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.
>

-- 
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