Create the public area of the website. The public area will have a different controller and view layout, and it will not require user authentication. There will only be two actions: index will display the default page, show will use the permalink provided in the URL to look up a page of content.
- View Offline
- Exercise Files
- [Instructor] By now we have a good admin area started.…Let's shift our focus to the public side…of our content management system…where visitors to our site will view the site content…that we enter in the admin area.…Here's our plan.…First, we're gonna have a publicController,…and then publicController's gonna have a new layout…which is gonna be called public.…It's gonna look very similar to what we have…for the admin area as well.…But the publicController is gonna require…no user authentication.…It's going to have an index action,…and that's just gonna have a template which contains…some introductory text.…
We'll also make this the default route for the site.…So if you just come to the website for the first time,…that's where you're gonna be sent.…And then we'll have a show action.…We wanna generate a route so that going to show…and then some page's permalink will take you directly…to that page.…Note that the controller isn't being included.…This is a simple match route.…It's gonna match on the text show followed by the permalink.…
- 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
MVC Frameworks for Building PHP Web Applicationswith Drew Falkman2h 39m Intermediate
Up and Running with Python and Djangowith Caleb Smith1h 11m Intermediate
RSpec Testing Framework with Rubywith Kevin Skoglund6h 13m Intermediate
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?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.