Ruby on Rails Thursday, April 2, 2015

Colin Law wrote in post #1171411:
> I believe you asked this question once before. What do you think in
> your code the td with image_tag user.avatar.url does? (see now why not
> to use a jpg, I have had to go and look at the image and re-type it
> rather than copying). Look at the html in the browser and see what it
> is.
>
> Colin

Yea i did but unable to find anything Googling so trying my self.
yea i know image_tag user.avatar.url gives me the url of file uploaded.
but can you tell me or point me towards some direction in rails 4 how
would i generate links for my uploaded files.

and one more thing when i upload images whether jpg or png it gives e
paperclip not identified error and i have dont everything uninstalling
and installing again imagemagick and also put
Paperclip.options[:command_path] = "/usr/local/bin/"
in development.rb
but still error

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

No comments:

Post a Comment