When I learn the ruby on rails video, I saw a line code like below:

Write Controller Code to put a life in your application.

I don't know the meaning of the put a life, could you explain what is the meaning ?

enter image description here

  • I think it means to enliven
    – user178049
    Jan 22 '17 at 3:45
  • @user178049 I think Joe Pinsonault's answer is reasonable.
    – aircraft
    Jan 22 '17 at 3:50
  • Oh, OK. Im glad he helps you :)
    – user178049
    Jan 22 '17 at 4:22
  • It is not idiomatic or correct, though. More normal would be "Put life in your application", because we're talking about life as a general phenomenon, not a specific person's life.
    – stangdon
    Jan 22 '17 at 15:11

I'm guessing that they meant something like "to put life into your application". RoR controllers are where you put the business logic of your application. Where read from a database, transform your data, and then pass information to your Views. That's what I assume they meant by "put a life in" given the context

This page might help you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.