I have a file that is located:
app/controllers/api/v1/users/searches_controller.rb
This file starts as following:
module Api
module V1
module Users
class SearchesController < ActionController::API
And I have this code:
I18n.t('.search')
When I say
i18n-tasks missing
It wants to put my key like thins:
.search
Which is not in the way I would like which is
api:
v1:
users:
searches_controller:
.......
When I say:
t('.search')
I get an error with: NoMethodError - undefined method
t' for ....`
But i18n-tasks missing
gives me the keys as following:
api:
v1:
users:
searches:
users_with_email_or_username:
.......
Am I doing something wrong or?