It also requires the 'remote' prefix.

===================
*Alexandre Mondaini Calvão*

"*Nossa recompensa se encontra no esforço e não no resultado. Um esforço
total é uma vitória completa*." [Ghandi]

2014-10-03 12:19 GMT-03:00 Alexandre Calvão <apot...@gmail.com>:

> From the carrierwave documentation
>
> <%= form_for @user, :html => {:multipart => true} do |f| %>  <p>    <label>My 
> Avatar URL:</label>    <%= image_tag(@user.avatar_url) if @user.avatar? %>    
> <%= f.text_field :remote_avatar_url %>  </p><% end %>
>
>
> It means that the parameter avatar should have the '_url' sufix.
>
> You can make a before_filter to change that, or a Service Object that
> would properly save the User with the correct parameter.
>
> ===================
> *Alexandre Mondaini Calvão*
>
> "*Nossa recompensa se encontra no esforço e não no resultado. Um esforço
> total é uma vitória completa*." [Ghandi]
>
> 2014-10-03 0:10 GMT-03:00 Adham El-Deeb <adham.eldee...@gmail.com>:
>
> I'm using *Rails-api* with *mongoid*.
>> I try to upload user avatar using *Carrierwave* from a *remote url*.
>> I got the*remote url* form *omniauth-facebook* image params.
>> The problem is the *avatar* field in *Databass* have nil value after
>> save.
>> This is my app on github https://github.com/adham90/pp
>>
>> --
>> 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+unsubscr...@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/5d0eee57-fa44-4a34-b692-ee394733e2fa%40googlegroups.com
>> <https://groups.google.com/d/msgid/rubyonrails-talk/5d0eee57-fa44-4a34-b692-ee394733e2fa%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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+unsubscr...@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/CA%2BaBw4RdsnVpmdko_5M10i%3DPxdF1jGHqho2zbtw%3Di-DgLAF3YQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to