Skip to content

set meta tage for controller/action from config file? #232

@yshmarov

Description

@yshmarov

Today I was adding meta-tags to an existing app, and had to modify 50+ controllers & actions - a lot.

...so I thought: what If we could set meta tags from a config file?

Something like this:

meta_tags.rb

controller: "users" do
  action: "index" do
    title: "All users"
  end
  action: "show" do
    title: [user.first_name, "name"],
    description: "hello world"
  end
end

What do you think about it? :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions