Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined method 'id' for False class error in view partial #162

Open
pnikrat opened this issue Feb 23, 2021 · 1 comment · May be fixed by #169
Open

Undefined method 'id' for False class error in view partial #162

pnikrat opened this issue Feb 23, 2021 · 1 comment · May be fixed by #169
Assignees
Labels

Comments

@pnikrat
Copy link
Contributor

pnikrat commented Feb 23, 2021

def localization_for(locale, localization_key) method in localization_keys_controller can return false. That can cause undefined method 'id' for false:FalseClass error in view partial _localizations_list.html.erb:

            <%- available_locales.each do |locale| %>
              <%- localization = localization_for(locale, lk) %>
              <tr>
                <td class="localization_row" data-id="<%= localization.id%>" data-edit="<%= edit_localization_key_localization_path(lk, localization, format: :js) %>" data-editing=0 data-content="">
@styrken
Copy link

styrken commented Mar 24, 2021

Same issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants