a little hackish but
"'#{array.join('\',\'')}'"
or
array.join(',').inspect.gsub(/\[\]/, '')
On Thu, Feb 17, 2011 at 12:55 PM, loganathan sellappa <loganathan.ms@
gmail.com> wrote:
> 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.
>
--
-------------------------------------------------------------
visit my blog at http://jimlabs.heroku.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.