Comments (2)
Sorry but I have to answer it in English...
current_user
and current_handyman
are not generated by code in your routes, but by devise helpers that automatically keeps your model scopes
. A devise scope
is defined in your role models. In this case it is defined in Account
base class, which is inherited by Handyman
and User
classes.
For the second question, this is also documented in both Devise Wiki and the source code. It's just the expected behavior for Devise route scopes, though I didn't dive deeper in how it works.
from kano.
from kano.
Related Issues (20)
- 后台的订单详情未显示维修内容 HOT 1
- 重发订单
- 下单页面增加物件数量和对应名称(件) HOT 2
- 下单页面输入框改进 HOT 2
- 下单页面错误提示改进 HOT 1
- 订单流转功能 HOT 1
- 下单页面支持上传图片 HOT 1
- 师傅头像支持 HOT 1
- 后台订单详情页面的师傅链接指向错误 HOT 1
- 前端并发问题 HOT 1
- 简化下单界面
- 提现申请限制问题 HOT 10
- Rename .css.scss to .scss
- 财会信息管理的链接跳转 HOT 1
- 师傅端提现历史记录
- 取消现金支付,增加师傅代用户微信支付
- 15分钟无人接单slack反馈
- 后台支持取消订单
- 订单两周后自动作废
- 170防隐私电话
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kano.