I have code that looks like this that I need to understand:
<ul class="dropdown-menu">
<li><%= link_to t('menubar.yes.okay') , admin_ok_path %></li>
</ul>
In this code, what is menubar.yes.okay
and where is that defined? Similarly, where is admin_ok_path
defined?
The reason I ask is because I would like to add another menu bar item. And if I write something like
<li><%= link_to t('menubar.yes.no') , admin_ok_no %></li>
then I get an error saying admin_ok_no
is not defined. So, what do I need to define in order to set up this new menu bar option? I have already added a No: "No"
in my en.yml
, but it is still the same error. Note that I have checked my routes.rb and there is no definition of admin_ok_path
however that works fine - it shows up in the menubar.