kpumuk / meta-tags

Search Engine Optimization (SEO) for Ruby on Rails applications.
MIT License
2.73k stars 275 forks source link

Refencing this tag: title 'My page title' gives error #177

Closed grichardomi closed 6 years ago

grichardomi commented 6 years ago

Adding this view tag in

<head><h1><%= title 'My page title' %></h1>

renders the following error wrong number of arguments (given 1, expected 0)

grichardomi commented 6 years ago

Used set_meta_tags as an alternative!

kpumuk commented 6 years ago

Which gems do you use? Seems like one of them exposes title helper, or you have it somewhere defined as helper (e.g. helper_method :title). There are plans to get rid of this helper in favor of meta_title or something like that

grichardomi commented 6 years ago

Installation Add the "meta-tags" gem to your Gemfile.

gem 'meta-tags' And run bundle install command.

I was not aware of other gem version. Please advise.

Thanks!

grichardomi commented 6 years ago

You are correct. I found title helper from one gem.