Colin Law wrote in post #1166334:
>
> For future reference it is better to copy the error text from the
> terminal window and paste it here rather than attaching an image, then
> I would be able to insert my text at the appropriate point in the
> error.
>
> I assume that the image field in the db is a string field.  You are
> calling Pin.new with a URI object as the image and the error says that
> there is not an implicit way of converting the URI to a string.  I
> guess that you want to use @image.to_s in Pin.new.
>
> Colin

Hi Colin,
  Thanks for answering. I posted "Here is the pins_controller.rb code
I'm using, which gives me an error
of "no implicit conversion of URI::Generic into String"" in the
question above. Is there something else that I should have added so
that I know in the future?

I thought of adding .to_s to @image, but that leads me to the error:
Paperclip::adapterregistry::nohandlererror in PinsController#copy
No handler found for 
"/system/pins/images/000/000/083/original/Alt-J_-_This_is_all_yours.jpg?1420125230"

I think I need to tell it to just pic out the .jpg itself, not the whole 
directory listing. Does that sound right?

-- 
Posted via http://www.ruby-forum.com/.

-- 
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/6e95b8053d293ce22a54c412ee4eb79c%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to