Locked lesson.
About this lesson
Summing up what we just did.
Quick reference
Conclusion
CONGRATULATIONS!!! Let's reflect on what we just did in the couse.
When to use
Wow - we just did a lot in a little amount of time. Congratulations!
Instructions
Take a few minutes to play around with the app you just built. Add some pins, edit some pins, delete some pins.
Resize the screen, watch the pins slide around. Have some fun with it!
Look through your development environment. Feel proud about all that code you wrote!
Hints & tips
- Take a moment to look back over what you just did in this course
- Congratulations - you made it through to the end
- Rails is super fun
- 00:04 We are done, I think we've built everything we wanna build.
- 00:08 And let's take a minute here just to kinda reflect over what we've done 'cause we've
- 00:12 done an enormous amount of stuff in this course.
- 00:14 We have this website now, we can log in.
- 00:21 We can edit a profile, add our name, our email address,
- 00:24 change our password, cancel an account, all done automatically with Devise.
- 00:28 We can show pins, we can edit pins, we can delete pins.
- 00:33 We can add new pins.
- 00:35 We can upload images.
- 00:36 We can store those images on Amazon AWS pulled through our
- 00:41 Heroku Postgres database.
- 00:43 And it's complete, and our website is completely mobile-ready.
- 00:47 We got our little hamburger guy there.
- 00:49 Our pins scroll around in this really awesome animated thing,
- 00:53 this little jQuery masonry thing.
- 00:57 And it really didn't take that long to do.
- 00:59 And we used a lot of third-party gems, so
- 01:01 we didn't even have to write a whole lot of code.
- 01:03 And I think you'll find, as you use rails more and more,
- 01:06 you're gonna come to rely on gems more and more.
- 01:09 I mean, you may not know Ruby, and so
- 01:10 you may not be able to program things as well as you might like.
- 01:14 But you've seen, I think, throughout this course that you really don't need to.
- 01:17 Now going forward I think, it's a good idea to learn Ruby if you're interested in
- 01:21 continuing on learning Rails, but definitely not necessary.
- 01:24 So let's take a minute just to look through here again from the end.
- 01:28 When we first started, I'm sure this seemed massively overwhelming.
- 01:32 All of these files, all of these directories, what is going on here?
- 01:36 But if we just start to pick apart each piece,
- 01:38 I think you'll probably see that it really makes a lot of sense.
- 01:40 This Gemfile, we use that all the time.
- 01:42 App, we use that directory a lot.
- 01:44 Config, we used it some, database, some.
- 01:48 And the rest of these we've pretty much ignored.
- 01:50 In an app, we use the assets whenever we wanna do JavaScript stuff or
- 01:54 Style Sheet stuff.
- 01:55 We never actually use the images folder,
- 01:58 because all of our images are taken care of with paperclip on the database side.
- 02:02 The controllers, remember we had our initial home controller with these two
- 02:06 little nothing methods that actually, we never actually put anything in there.
- 02:10 And it still continues to work exactly how we want it to.
- 02:13 And then we had the pins controller that had considerably more stuff in it.
- 02:17 But this is probably the most confusing file here,
- 02:20 especially if you're not familiar with Ruby programming.
- 02:24 These things like instance variables, and connecting to the database,
- 02:28 with this stuff here maybe a little confusing.
- 02:30 But I think you'll agree it wasn't that bad once I showed it to you once,
- 02:33 and it doesn't matter what you're creating.
- 02:36 If you're creating a blog, for instance, this code will be pretty much the same,
- 02:40 except you won't name it pin, you'll name it blog, or post, or
- 02:43 something that like that.
- 02:44 But the rest of the code will look and work the same for
- 02:48 pretty much any app that you build.
- 02:50 So controllers, let's see, models, we use these two files, just a little bit.
- 02:56 Users was a lot of Devise stuff and remember,
- 02:58 we also use these to associate our pins and our users together.
- 03:02 Views, we used this a lot.
- 03:05 Our layouts with our application, that HTML file.
- 03:09 Home directory.
- 03:10 All of our Devise stuff.
- 03:14 All of those Devise forms.
- 03:16 And then finally, our pins directory.
- 03:17 With all of our pin Index page, and our Show page.
- 03:20 The main ones we use.
- 03:21 We also use New, to create a new pin.
- 03:24 And then looking through here, Config.
- 03:25 We use that for our routes file.
- 03:28 And you probably remember I mentioned that routes were really confusing.
- 03:31 But they really weren't that bad for us.
- 03:33 Some of these, the Devise ones were created for us with Devise.
- 03:37 The rest of them, this route and get were pretty straightforward.
- 03:39 So, not too bad.
- 03:40 And then in the config directory, we also have this environments folder,
- 03:43 we use these two things, development and production.
- 03:46 Test, Rails allows you to test your code in a certain way.
- 03:49 And we really didn't talk about it a whole lot in this course.
- 03:51 But that's where you would do that in the future if you wanna learned about testing.
- 03:56 And finally, the database file, remember we had our migrations.
- 04:00 That's how you do database stuff, you create a migration, and
- 04:02 then you push it into the database, pretty simple.
- 04:04 If you wanna look at your database, like a snapshot of your database,
- 04:08 you use the schema file.
- 04:09 And here we have our pins table and our users table, and
- 04:12 all the different columns and fields for that table.
- 04:15 And that's pretty much it.
- 04:17 So, I hope after this course you have a pretty good understanding of what Rails is
- 04:21 capable of.
- 04:22 And I really hope that you wanna continue learning more,'cause this is just
- 04:25 the beginner's course and we got a lot done, but there's a lot more to learn.
- 04:29 And I definitely recommend you keep at it, and keep learning.
- 04:32 And in the next video, I'll talk a little bit more about where to go from here, and
- 04:37 what to focus on next.
Lesson notes are only available for subscribers.