DEV Community

Cover image for Let's Build a Rails App!
Rylie Spriggs
Rylie Spriggs

Posted on

Let's Build a Rails App!

Here we are again, writing another post, meaning that I completed my third project for Flatiron school and I could not be happier!

This time around, I created an Anime series collective of A-Z titles (my favorites of course).
Since you asked, series wise my favorites are: Attack on Titan, Jujutsu Kaisen, and Code Geass: Lelouch of the Rebellion, but as our likes and interests change this will inevitably change.

Now back to the project..

Requirements for this project seemed like an insurmountable mountain, solving one step only made it seem like the peak got farther and farther away. However, Dory from Finding Nemo was in my head "just keep swimming(climbing)."

To start, I created a few models; Users, Shows, Reviews, and Watch Later.

We want a user to be able to sign in but not hardcode it into the user's controller so I used sessions =>

Alt Text

(omniauth was a headache)

Next, wanted to make sure a user could hop on and see a welcome page to sign up, login, or use a 3rd party, it went like this =>

Alt Text
Everyone needs a little help sometimes, lets bring in the application helper =>

Alt Text

Alt Text

Good stuff!!

Alright, next was the seed file, which took a lot longer than anticipated. =>

Alt Text

Awesome! Next was tying things together with the shows controller and view files. =>

Alt Text

Alt Text

Everything is in place for our views now =>

Alt Text

Which all tied together with new, edit, index, and show will look like =>

Alt Text

(26 titles are very difficult to fit in one screenshot but you get it)

So, great! We have our users and shows but we need to add some more spice, let's add reviews!

Here comes the reviews controller! =>

Alt Text
Alt Text

Sweet, looks like we're set to create some views so we can give our undying love to these amazing titles =>

Alt Text

All tied up like Houdini, it'll look like this! =>

Alt Text
Alt Text
Alt Text

So we can click on a title, get the genre, description, seasons, and rating, and then leave a review!You can even create a new review, update it or, or delete your review just incase you didn't get give it a 5/5.

And there you have it folk, an A-Z collective of Anime's you should definitely watch if you haven't already.

Now I know it doesn't have all the css bells and whistle right now, but this will continue to be a work in progress and will be updated once it's shiny and pretty.

Thanks for tuning in!

Alt Text

Top comments (1)

Collapse
 
davidcolbyatx profile image
David Colby

Hey Rylie, thanks for sharing! A quick tip for the future, to make your articles more accessible and so you can take fewer screenshots of your editor!

You can add code blocks with highlighting by wrapping code in 3 `s, as described here.

Good luck!