Wednesday, December 4, 2013

Re: [Rails] Array param does not work




On Wed, Dec 4, 2013 at 2:14 PM, <marcus@handcom.com.br> wrote:

Hello,

in my code, the array param does not work.

reponse = RestClient.post(
'https://mandrillapp.com/api/1.0/messages/send.json',
{:key => "XXXXXXXXXXXXXXXXX",
:message => {
:html => '

testeeeee

',
:text => 'Example text content',
:subject => 'example subject',
:from_email => 'test1@handcom.com.br',
:from_name => 'Pedreco',
:to => [
{:email => 'test2@handcom.com.br'

Right here you forgot to close the hash. 

]
}
})

But if a remove this code: ":to => [{:email => 'test2@handcom.com.br']"

the code work.

Could you help me?

Thanks!!

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8adfa5f5-eaa5-4f2a-9a91-51ea20c4715c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAHUC_t9iaXf02SZob0D3meQVSDFstoudg_yV2C98x8xPokbesA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate