One of the challenges of building web applications is that the web is a "stateless environment.” Cookies help us to solve the problem of the stateless web. A web server can send data to the user's browser for storage in a browser cookie. With each request to that web server, the browser will send along that cookie data. This allows an application to maintain the "state" of a user's interaction.
- [Instructor] One of the challenges of building…web applications is that the web is a stateless environment.…When web servers respond to requests for pages,…each request is treated as a new request,…and the web server doesn't know, keep track of,…or care about what previous requests have been made.…It doesn't know what a user has selected or clicked on…previously, and doesn't even know if the user…is logged in or not.…Cookies help us to solve the problem of the stateless web.…A web server can send data to the user's browser…for storage in a browser cookie.…
Then with each subsequent request to the web server,…the browser will send along that cookie data.…A cookie might track what the user last clicked on,…or it might include the user's location,…language preferences, or search settings.…And this allows an application to maintain the state…of a user's interaction.…Cookies in Rails work just like a hash of values.…So we can assign a value to a cookie by simply calling…cookies, plural, and then in square brackets…
- Creating and configuring a new Ruby on Rails project
- Generating controllers and views
- Handling server requests
- Using different types of routes
- Rendering and viewing templates
- Generating migrations and models
- Creating, updating, and deleting records
- Finding records with queries
- Understanding relationship types
- Writing controllers for CRUD
- Working with layouts and helpers
- Managing application assets
- Building forms
- Validating data
- Authenticating users
Skill Level Beginner
1. What Is Ruby on Rails?
2. Get Started
3. Controllers, Views, and Dynamic Content
4. Databases and Migrations
5. Models and ActiveRecord
7. CRUD, REST, and Resourceful Routes
8. Controllers and CRUD
9. Layouts, Partials, and View Helpers
12. Data Validation
13. Controller Features
14. User Authentication
15. Improve the Simple CMS
Next steps1m 44s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.