project-eutopia / todolist Goto Github PK
View Code? Open in Web Editor NEWTodo-list management service
Todo-list management service
TodosHelper#incomplete_count should move model.
TodosHelper#incomplete_count rewrite follows.
class Todo
...
def self.incomplete_count
where(done: false).count
end
end
TodosController#remove_all_complete should move model.
Maybe you try to pass through else condition on Todo#search method when search is blank.
when search is blank, "if phrase" return true.
because blank is true in ruby. you should change "if phrase.present?" or "unless phrase.blank?"
expected:
after clicked update button on edit page, todo should be updated.
but currently todo deleted.
please fix this bug and check the work on the screen.
When search button is clicked, undefined method `search' error occur.
Add search method to Todo.class.
Please add japanese translations. Especially devise.
you should @user.todos.remove_all_complete.
Other code should move todo, too.
Rails is Object oriented programming.
I write in Japanese from here.
メソッドは、オブジェクト(クラス)の処理を呼び出すものです。
@user.remove_all_complete と書くと、コードを見る人は、userを削除すると思います。実際は違っても。コードを見る人がみて、分かりやすいコードを書くようにしてください。ですが、できるだけシンプルに。そこが難しいところです。
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.