artstore's People
Forkers
adlerhsieh gbjim pacatung bob76828 specialvict lay3eric xdite edcckao style1220 enninglintw chenmoneta schtseng ryanyangtw madeinfree jimmy0328 mikesu852 timeregorge hazetodo jimmylc voggyhorla andystu jynilartstore's Issues
作業1 解答有誤
- before_action 的 admin_required 沒有 redirect
一般使用者還是可以新增商品
def admin_required
current_user.admin?
# should be:
# redirect_to root_path unless current_user.admin?
end
2 .admin_product_path(product) 錯誤
admin / products / index.html.erb 裡有
<%= link_to(product.title, admin_product_path(product)) %>
但是 admin / products_controller.rb 裡 沒有 show action
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.