atuley / twitter Goto Github PK
View Code? Open in Web Editor NEWVery basic implementation of Twitter using Ruby on Rails and TDD
Very basic implementation of Twitter using Ruby on Rails and TDD
It's less than ideal for a user to submit a form only to have the form redisplayed with no error. Recommend adding the error messages to the form similar to the signup form.
The authorize
method is actually authentication. Authentication is determining who the user is. Authorization is determining whether they have permission to do something. This is relatively common terminology within software development, and it will serve you well if you spend a little bit of time firming up the distinction between them so that you can be confident in conversations about it. Many people use something like the cancancan
gem to make resource-based authorization easier.
When dealing with authorization, it's better to include all actions by default and only exclude
the specific ones desired, rather than using include
to opt-in. When you add a new action, remembering to include them is often missed and could lead to unprotected endpoints someone could use to do bad stuff to a rails app.
The find
method throws RecordNotFound
if id can't be located, but the find_by
method does not. I recommend replacing this with find_by(id: session[:user_id])
.
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.