可以使用rake db:seed
来生成管理员账户,不过在数据库内teachers表内已经有管理员账户时无效。如果真的有这个需求可以更改一下db/seeds.rb
filow / examal Goto Github PK
View Code? Open in Web Editor NEW课程设计--在线考试系统。使用Ruby on Rails实现。在服务器上部署后可以由老师管理其考试,并发布给学生参加考试。由于需要自动化评分,题型只支持选择题和多选题
课程设计--在线考试系统。使用Ruby on Rails实现。在服务器上部署后可以由老师管理其考试,并发布给学生参加考试。由于需要自动化评分,题型只支持选择题和多选题
hi~
想问一下,教师登陆的时候没有注册入口,在数据库里直接添加的话,密码是加密,要怎么加入密码?还是有别的方法呢?
创建考试时要启发before action: :edit_or_delete_right,然后再edit_or_delete_right方法中先判断是否为管理员再判断目前题目的老师id。但是题目 @quetion 没有初始化。Bug
https://github.com/filow/examal/blob/master/app/controllers/exams_controller.rb 118行
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.