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
I'm not sure but
filter_access_to :show, :edit, :update, :attribute_check => true, :load_method => :current_user
and
<%= link_to t('common.actions.show'), user %>
doesn't work for me. My show links in /users looks like /user/zoran but my login in DB is Zoran not zoran - should the user name be case sensitive in that link? However, even when I change my login to zoran I always get the root's profile page and not zoran's.
I tried a pragmatic workaround:
def show @user = User.find_by_login(params[:id])
end
and
<%= link_to t('common.actions.show'), user_path(user.login) %>
Well, that works but I don't think I should do that?!
The text was updated successfully, but these errors were encountered:
I'm not sure but
filter_access_to :show, :edit, :update, :attribute_check => true, :load_method => :current_user
and
<%= link_to t('common.actions.show'), user %>
doesn't work for me. My show links in /users looks like /user/zoran but my login in DB is Zoran not zoran - should the user name be case sensitive in that link? However, even when I change my login to zoran I always get the root's profile page and not zoran's.
I tried a pragmatic workaround:
def show
@user = User.find_by_login(params[:id])
end
and
<%= link_to t('common.actions.show'), user_path(user.login) %>
Well, that works but I don't think I should do that?!
The text was updated successfully, but these errors were encountered: