I'm sorry for the first question and the unfamiliar text.
I want to resize the image using the variant method.
If i use the variant method, it will not be resized and the image will not be displayed.
What I tried
<% = image_tag tweet.image.variant (resize: '500x500') if tweet.image.attached?%> <span><% = image_tag'arrow_top.png'%></span> <ul> <li> <% = link_to'Details', tweet_path (tweet.id), method:: get%> </li> <% if user_signed_in?&¤t_user.id == tweet.user_id%> <li> <% = link_to'edit', edit_tweet_path (tweet.id), method:: get%> </li> <li> <% = link_to'Delete', tweet_path (tweet.id), method :: delete%> </li> <% end%> </ul> <p><% = tweet.title%></p> <span> <% = tweet.text%> </span> <span> "> <span>Posted by</span><% = tweet.user.nickname%> </span>
I searched google search for cases that are not displayed, but I could not find a case that corresponds to this time.Supplementary information (FW/tool version, etc.)
I am using ruby on rails.
In this way, the image disappears.
I would be grateful if anyone could give me some advice.
Thanks for your cooperation.
Answer # 1
To tweet model
Installation of minimagick
Have you done that?
This article may be helpful.
- ruby on rails - [rails] the initial image of the icon for the user is not displayed
- ruby - s3 image is not displayed (activestorage)
- ruby - i want to solve the n + 1 problem when using rails where method in loop processing
- ios - i want to solve the problem that the size of the image fluctuates when i tap the cell
- ruby on rails - i want to solve the problem that scss is not applied after modifying the scss file with rails
- ruby - bootstrap image is not displayed
- ruby on rails - i want to solve the problem that "we're sorry, but something went wrong" is displayed in the productio
- ruby - the image is not displayed in the product listing function
- ruby - the image is displayed as strange characters in rails
- html - i want to solve the problem that modal is not displayed on bootstrap4 smartphone
- i want to solve the phenomenon that when data is updated with update, other data is also updated (ruby on rails 600)
- ruby - [rails] i want to create an image link using the url of the image output using active storage
- ruby - i want to display only the image of the logged-in user when executing the search function
- i want you to solve the mysterious phenomenon that the ruby error message is not displayed why is it evoked in view by applying
- it ’s a simple problem in ruby
- html - about adjustment problem of icon image + balloon
- php - png image is not displayed
- ruby - the poster's name is not displayed in showhtmlerb
- ruby - partial template is not displayed (rails)
- python - you may need to restart the kernel to use updated packages error
- php - coincheck api authentication doesn't work
- php - i would like to introduce the coincheck api so that i can make payments with bitcoin on my ec site
- [php] i want to get account information using coincheck api
- the emulator process for avd pixel_2_api_29 was killed occurred when the android studio emulator was started, so i would like to
- dart - flutter: the instance member'stars' can't be accessed in an initializer error
- sh - 'apt-get' is not recognized as an internal or external command, operable program or batch file
- i want to call a child component method from a parent in vuejs
- python 3x - typeerror: 'method' object is not subscriptable