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

ブックマークの追加機能が動作しない #1726

Closed
masao opened this issue Aug 21, 2022 · 4 comments
Closed

ブックマークの追加機能が動作しない #1726

masao opened this issue Aug 21, 2022 · 4 comments
Milestone

Comments

@masao
Copy link
Member

masao commented Aug 21, 2022

ブックマークレットから追加しようとすると以下のエラーが出て、Railsエラーになる。

F, [2022-08-21T06:52:41.075191 #1] FATAL -- : [6cbf9e0f-311f-4939-bb4f-f36cf3241811]
[6cbf9e0f-311f-4939-bb4f-f36cf3241811] ActionView::Template::Error (undefined method `errors' for nil:NilClass):
[6cbf9e0f-311f-4939-bb4f-f36cf3241811]     2:   <h1 class="title"><%= t('page.new', model: t('activerecord.models.bookmark')) -%></h1>
[6cbf9e0f-311f-4939-bb4f-f36cf3241811]     3:   <div id="content_list">
[6cbf9e0f-311f-4939-bb4f-f36cf3241811]     4:
[6cbf9e0f-311f-4939-bb4f-f36cf3241811]     5:   <%= form_for(@bookmark) do |f| -%>
[6cbf9e0f-311f-4939-bb4f-f36cf3241811]     6:     <%= error_messages(@bookmar) -%>
[6cbf9e0f-311f-4939-bb4f-f36cf3241811]     7:
[6cbf9e0f-311f-4939-bb4f-f36cf3241811]     8:     <div class="field">
[6cbf9e0f-311f-4939-bb4f-f36cf3241811]
[6cbf9e0f-311f-4939-bb4f-f36cf3241811] app/helpers/enju_leaf/application_helper.rb:132:in `error_messages'
[6cbf9e0f-311f-4939-bb4f-f36cf3241811] app/views/bookmarks/new.html.erb:5
[6cbf9e0f-311f-4939-bb4f-f36cf3241811] app/views/bookmarks/new.html.erb:5
@masao masao added the bug label Aug 21, 2022
@masao masao added this to the 1.4.0 milestone Aug 21, 2022
@nabeta
Copy link
Member

nabeta commented Aug 21, 2022

@masao ブックマークレットで追加しようとしたURLは、Enju内部・外部のいずれのものでしょうか?

@masao
Copy link
Member Author

masao commented Aug 21, 2022

外部のURLです。

@nabeta
Copy link
Member

nabeta commented Aug 27, 2022

@masao 修正をmainブランチにマージしました。

@masao
Copy link
Member Author

masao commented Oct 22, 2022

修正を確認しました。クローズします

@masao masao closed this as completed Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants