This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. What's the difference between rendering and redirecting? What's the impact with regards to instance variables, view templates? | |
__Redirecting sends you off to a new action and clears all of your old instance variables. Rendering loads a view template. and retains your instance variables.__ | |
2. If I need to display a message on the view template, and I'm redirecting, what's the easiest way to accomplish this? | |
__Use the flash[:notice] helper and store a message in it.__ | |
3. If I need to display a message on the view template, and I'm rendering, what's the easiest way to accomplish this? | |
__Store the message in an instance variable and display it__ | |
4. Explain how we should save passwords to the database. |
NewerOlder