You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
can anyone help? I have set a helper method on ApplicationHelper and try to make it work on rails-api X jbuilder. However, it shows undefined local variable or method current_user_detail'`
this is my ApplicationHelper
module ApplicationHelper
def current_user_detail
User.find(current_user.id).user_detail if user_signed_in?
end
end
this is my Application controller
class ApplicationController <ActionController::API
include ActionController::ImplicitRender
include ActionController::Helpers
can someone help?
The text was updated successfully, but these errors were encountered:
can anyone help? I have set a helper method on ApplicationHelper and try to make it work on rails-api X jbuilder. However, it shows
undefined local variable or method
current_user_detail'`this is my ApplicationHelper
this is my Application controller
can someone help?
The text was updated successfully, but these errors were encountered: