
Manas sricharan VARRI
8,242 Pointsuse of let!() function
In the video editing Todo Lists the code was like let!(:todo_list) {TodoList.create(title: "Groceries",description: "Grocery list.")}, y not use todo_list = TodoList.create(title: "Groceries",description: "Grocery list."),this is also considered to be declaraded globally. plss brief the purpose of let!(). Thanks in advance.
2 Answers

David Chapman
22,023 PointsHi Manas!
Let me point you to three articles that helped me understand this concept.

Manas sricharan VARRI
8,242 PointsThanku very much. you helped me a lot.

David Chapman
22,023 PointsGlad that helped!

Manas sricharan VARRI
8,242 Pointscan u please suggest any documentations or references (books)for clear understanding of rails.
Unsubscribed User
11,041 PointsUnsubscribed User
11,041 PointsPlease use some plain english instead of writing "y" and "plss" the next time you ask for help on the internet...