I do everything according to the instructions of the author of the gem: https://github.com/weppos/breadcrumbs_on_rails I started to create even a controller like it with the same name. In general, I get this error:

undefined method `add_breadcrumb' for MyController:Class 

How to fix? Ruby version: ruby 2.1.8p440 (2015-12-16 revision 53160) [x86_64-linux]

Rail version: Rails 4.2.5.1

  • one
    Can you give me exactly how your controller looks like now? Just in the examples, for example, it is not inherited from ActionController :: Base. Can't this be the case? - cheops

0