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

users index: show, edit, destroy links #7

Open
zoran opened this issue Sep 18, 2009 · 0 comments
Open

users index: show, edit, destroy links #7

zoran opened this issue Sep 18, 2009 · 0 comments

Comments

@zoran
Copy link

zoran commented Sep 18, 2009

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?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant