We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
I included this in _coment.html.erb
<%= editable [comment.article, comment], :content, url: edit_article_comment_path(comment.article, comment) %>
I also included a helper method below, which is included (helper_method :xeditable?) in the application controller. I don't use cancan authentication.
module ApplicationHelper def xeditable? can?(:edit, object) ? true : false end def can?(role, object) true end end