On 2 April 2015 at 11:14, Edward Maya <lists@ruby-forum.com> wrote:
> 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.
I told you that when you asked before. Use link_to rather than
image_tag so you will make a link to the url not an image of the
document.
>
> 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
Start a new thread for that one. It is always best to ask one
question per thread or everything gets confused. First try googling
for the exact error message you get. If that does not help, or if you
have done it already then copy/paste the full error message in the new
thread and if it points to your code then also post that section of
code (just the lines leading up to the error).
Colin
>
> --
> 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.
--
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/CAL%3D0gLu0vVVt1%2B9mocNA2UUz_AmT1NOYf0kVH6W37kP-kV_jRg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment