All Questions
Tagged with meta-tags ruby-on-rails
48
questions
0
votes
0
answers
31
views
OG image height and width are not applied to image, even though they appear in html
I have defined OG metadata, including images, for my Rails 7 website. I'm using the meta-tags gem to set the metadata.
When I use the Facebook debugger tool (https://developers.facebook.com/tools/...
0
votes
2
answers
730
views
Rails 6 Creating IF statement for conditional meta_tag based on DB value
I have looked at multiple pages, but my brain cannot bridge the gap to how this problem should look answered.
Problem: I need very specific DB generated show pages to have <meta name="robots&...
1
vote
0
answers
425
views
Vue-meta tags not updating meta tags with rails as backend
I am using Ruby 2.5.1 , Rails 6.0.3.4 and Vue 2.6.
Here in rails,
application.html.erb
<!DOCTYPE html>
<html>
<head>
<title>This is my back-end title</title>
&...
0
votes
1
answer
752
views
meta tag og:image for facebook sharing rails app
I have a page with article, and I can set from back-end an image for the article. In the show action I would like to obtain the meta tag og:image to share the article in facebook also with the image.
...
2
votes
1
answer
409
views
is url active storage with rails_blob_path valid to use in meta tags
I have Model User that has one avatar, and I set meta tag for og:image with rails_blob_path, I set this in the controller and the result of URL of it likes:
myappname/active_storage/blobs/...
0
votes
1
answer
247
views
LinkedIn og:image tag does not work when I add link to my personal profile but does work when I make posts
I've tried refreshing the LinkedIn cache using the LinkedIn post inspector and it's updated to the correct image for LinkedIn posts only. The image used when I add the link to my profile is incorrect. ...
0
votes
1
answer
6k
views
no implicit conversion of nil into String Ruby on Rails
can somebody help with this, please?
My blog post share isn't showing an image on Twitter. I benchmarked other websites and noticed all the blog post working websites had a domain URL in the prior to ...
1
vote
0
answers
406
views
uninitialized constant MetaTags when gem added in rails engine and loaded in another application
I am currently building a rails engine and in my gemspec file i have this gem meta-tags which i have added like this
insurance.gemspec
$:.push File.expand_path("../lib", __FILE__)
# Maintain your ...
0
votes
0
answers
299
views
Twitter Card not working in Rails 5.1.4
I made Rails app and released.
I set ogp and twitter card by using meta-tags gem.
However,Twitter Cards Validator could not find any meta tags.
The browser shows codes blow
<!DOCTYPE html>
<...
0
votes
0
answers
398
views
how to get full path in controller for image in assest folder rails 5?
class BlogController < ApplicationController
def index
@page_title = 'Blog'
set_meta_tags og: {
title: 'Blog ',
image: ActionController::Base....
-1
votes
2
answers
248
views
Is it insecure to include meta tags as normal HTML in the Rails application.html.erb file?
I am currently having trouble with a twitter-bootstrap view on my heroku app. I think that <meta name="viewport" content="width=device-width, initial-scale=1.0"> will make the mobile design of ...
1
vote
0
answers
907
views
Rails 4: Open Graph Meta-tags not working
I set up the meta-tags gem, and I added Open Graph metatags as follows:
<% set_meta_tags title: 'Sortyu Image',
description: @photo.description,
og: {
...
0
votes
1
answer
2k
views
Fetching URL Metadata from JS
Most social media sites have a feature where you can type in a link and the site will generate a link preview of it. See example below from Google+
Let's say I'd like to build my own. I'm using Ruby ...
0
votes
0
answers
362
views
Using non-public image from S3 as meta og:image
I would like to use non-public images from an S3 bucket in my site's meta tag.
My <head> looks like this:
<meta property="og:image" content="<%= asset_path @list.image %>" />
And ...
0
votes
0
answers
115
views
Description not available because of robots.txt on Rails app
I have some problems with the Google snippet description of my Rails app in Google search results. I get:
A description for this result is not available because of this site’s robots.txt
I don't ...