{"id":15064588,"url":"https://github.com/johnvuko/jt-rails-meta","last_synced_at":"2026-02-21T16:01:02.328Z","repository":{"id":34407051,"uuid":"38335938","full_name":"johnvuko/jt-rails-meta","owner":"johnvuko","description":"Manage HTML meta tags for SEO in Ruby On Rails","archived":false,"fork":false,"pushed_at":"2017-10-26T15:46:45.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-12T01:24:57.231Z","etag":null,"topics":["html","meta","meta-tags","metadata","opengraph-tags","rails","ruby","search-engine-optimization","seo","seo-meta","seo-tools","seotools","twitter-cards"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnvuko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-30T22:18:10.000Z","updated_at":"2018-11-26T10:12:50.000Z","dependencies_parsed_at":"2022-08-03T20:45:14.296Z","dependency_job_id":null,"html_url":"https://github.com/johnvuko/jt-rails-meta","commit_stats":null,"previous_names":["johnvuko/jt-rails-meta"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/johnvuko/jt-rails-meta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2Fjt-rails-meta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2Fjt-rails-meta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2Fjt-rails-meta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2Fjt-rails-meta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnvuko","download_url":"https://codeload.github.com/johnvuko/jt-rails-meta/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2Fjt-rails-meta/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29685018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T15:51:39.154Z","status":"ssl_error","status_checked_at":"2026-02-21T15:49:03.425Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html","meta","meta-tags","metadata","opengraph-tags","rails","ruby","search-engine-optimization","seo","seo-meta","seo-tools","seotools","twitter-cards"],"created_at":"2024-09-25T00:21:36.207Z","updated_at":"2026-02-21T16:01:02.310Z","avatar_url":"https://github.com/johnvuko.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JTRailsMeta\n\n[![Gem Version](https://badge.fury.io/rb/jt-rails-meta.svg)](http://badge.fury.io/rb/jt-rails-meta)\n\nJTRailsMeta help you to manage HTML meta tags like title, description, keywords used in Search Engine Optimization (SEO).\n\n## Installation\n\nJTRailsMeta is distributed as a gem, which is how it should be used in your app.\n\nInclude the gem in your Gemfile:\n\n\tgem 'jt-rails-meta', '~\u003e 1.0'\n\nCreate a `meta.yml` file for the translations:\n\n\trails g jt:meta\n\n## Usage\n\n### Basic usage\n\nInclude `JT::Rails::Meta` in your `ApplicationController`:\n\n```ruby\nclass ApplicationController \u003c ActionController::Base\n\tinclude JT::Rails::Meta\n\t...\nend\n```\n\nCall `meta_tags` in your layout:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chead\u003e\n\t\u003cmeta charset=\"UTF-8\" /\u003e\n\t\u003c%= meta_tags %\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\u003c/body\u003e\n```\n\nYou have also access to `meta_title`, `meta_description`, `meta_keywords` methods.\n\nDefine your meta in `meta.yml` file:\n\n```yaml\nen:\n  meta:\n    # in general you use either prefx or suffix for the title of your page\n    # prefix or suffix are not applied on default title and are both optional\n    prefix: \"My Website - \"\n    suffix: \" - My Website\"\n\n    # default meta used if no meta are found for a page\n    default:\n      title: My WebSite\n      description: My super website is about something magnificent\n      keywords: \"website, some keywords\"\n\n    # Exemple of meta for the controller users and the action new\n    # title, full_title, description and keywords are all optional\n    users:\n      new:\n        title: Sign up\n        description: Description of sign up page\n        keywords: \"sign up, registration\"\n\n    # Another example for the controller home and the action index\n    # full_title is used if exceptionally you don't want to use the prefix or suffix\n    # you can use either title or full_title\n    home:\n      index:\n        full_title: Home\n        description: Description of homepage\n\n```\n\n### Pass parameters to tags\n\nIn your controller:\n\n```ruby\nclass PostsController \u003c ApplicationController\n  def show\n    @post = Post.find(params[:id])\n\n    set_meta_title({ title: @post.title })\n    set_meta_description({ title: @post.title, author: @post.author })\n    add_meta_keywords(@post.tags.map(\u0026:name))\n  end\nend\n```\n\nIn your `meta.yml` file:\n\n```yaml\nen:\n  meta:\n    posts:\n      show:\n        title: \"%{title}\"\n        description: \"Post about %{title} by %{author}\"\n```\n\n### Add more tags\n\nYou can add more tags with `add_meta_extra` and `add_meta_link` methods:\n\n```ruby\nadd_meta_extra 'robots' =\u003e 'noindex,nofollow'\nadd_meta_extra { \n\t\ttwitter: {\n\t\t\tsite: '@mywebsite',\n\t\t\tdomain: 'mywebsite.com',\n\t\t\ttitle: meta_title,\n\t\t\tdescription: meta_description,\n\t\t\timage: [\n\t\t\t\t'http://mywebsite.com/image_1.jpg',\n\t\t\t\t'http://mywebsite.com/image_2.jpg'\n\t\t\t]\n\t\t}\n\t}\n\nadd_meta_link 'author', 'https://github.com/jonathantribouharet'\nadd_meta_link 'publisher', 'https://github.com/jonathantribouharet'\n```\n\nThere is some methods already created using `add_meta_link` method:\n- `add_meta_link_canonical` which is equivalent to `add_meta_link 'canonical'`\n- `add_meta_link_author` which is equivalent to `add_meta_link 'author'`\n- `add_meta_link_publisher` which is equivalent to `add_meta_link 'publisher'`\n- `add_meta_link_alternate` which is equivalent to `add_meta_link 'alternate'`\n\n## Author\n\n- [Jonathan Tribouharet](https://github.com/jonathantribouharet) ([@johntribouharet](https://twitter.com/johntribouharet))\n\n## License\n\nJTRailsMeta is released under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnvuko%2Fjt-rails-meta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnvuko%2Fjt-rails-meta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnvuko%2Fjt-rails-meta/lists"}