On Wed, Dec 4, 2013 at 2:14 PM, <[email protected]> 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 => '[email protected]',
> :from_name => 'Pedreco',
> :to => [
> {:email => '[email protected]'
>

Right here you forgot to close the hash.

>
> ]
> }
> })
>
> But if a remove this code: ":to => [{:email => '[email protected]']"
>
> 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 [email protected].
> To post to this group, send email to [email protected].
> 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 [email protected].
To post to this group, send email to [email protected].
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.

Reply via email to