We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
One edit:
def xeditable?(object) can?(:edit, object) ? true : false end
Sorry, something went wrong.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: