mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-12 09:43:36 +01:00
- replace `match` with `get`/`post`/`patch`/`delete` - format routes.rb - rename the `show_user_{profile,question,answer}` routes to `profile`, `question`, `answer` so `url_for` (used by Rails Admin) works fine for these things - also add `to_param` to the `User` model so that `url_for(some_user)` uses the user name
6 lines
453 B
Text
6 lines
453 B
Text
.card
|
|
.list-group.list-group-horizontal-sm.text-center
|
|
= list_group_item 'Answers', user_path(user), badge: user.answered_count
|
|
= list_group_item 'Questions', show_user_questions_path(user.screen_name), badge: user.asked_count
|
|
= list_group_item 'Followers', show_user_followers_path(user.screen_name), badge: user.followers.count
|
|
= list_group_item 'Following', show_user_followings_path(user.screen_name), badge: user.followings.count
|