I would like to say first and foremost never let others dictate your path or destiny and always listen to your heart, this rails project was created for the artist out there who don’t have a place to upload their mixtapes online and see other users opinions. Now with Fresh_Out you can, by signing up or even with a google account, a user can then leave opinions on other users mixtapes or they can create their own mixtape and see what other uses think.
THE CONCEPT OF “ <%= LINK_TO ‘CREATE MIXTAPE’, NEW_TAPE_PATH %> WAS VERY DISTURBING TO ME BECAUSE I HAD NO IDEA ABOUT THIS ROUTES CONCEPT. see coming out of Sinatra i was very tunnel visioned and determined to step up my coding game by finishing in advance but during the lectures and open office hours i was subjected to lack of support, unfortunatley i was doomed coming into this project.
The internet is a basic place with css to make it look pretty, the process of form making it a deep challenge to me where the html is not being made by us but the ruby code that we use, such as what we see above us is the finished ugly version of this code image below. one can conclude that this is whatsa going on in the background.
The code that generates this html for us, is really the magic of this whole rails thing, so check this out .
<%= form_with(model: @tape) do |f| %><%= f.label :title %><%= f.text_field :title %> <br><%= f.label :artist %><%= f.text_field :artist %><%= f.label :artcover %><%= f.text_field :artcover %> <br><%= f.submit 'Create Mixtape' %><% end %>
Now trust me i can envision this concept but putting it all together was my down fall, The support that i was expecting to have never satisfied and so i began typing and attempting to make this code understandable but the essence of time showed no mercy to me and my slowly but growing brain.
This project has the potential to really show me what my dreams could manifest, with coding, but unfortunately my cohort was not able to assist, but one day i will understand ruby on rails and i will come back to this project and i will become victorious, but until then this is all i could achieve, saddly.
Flash messaging is one of those things that you kinda learn to accept that its there to help the user see the wrong in a form submission. for example because of that flash message i am able to let the user know if their opinion was added successfully or denied. Another way i learned to added these div errors as flash messages where the browser goes off of your validations created for example as the photo below will show.
This is a prime example of letting the validations and the browser catch the errors when submitting a form and allowing it to display what those div errors were exaclty.
IN CONCLUSION/personal OPINION
THIS PROJECT TURNED OUT TO BE A COMPLETE DISASTER FROM THE MOMENT I BEGAN IT. I WAS VERY CONFUSED WHEN IT CAME TO ROUTES AND ESPECIALLY THE GENERATORS THAT RAILS PROVIDES THE DEVS. I I STRUGGLED DEEPLY WITH THIS PROJECT AND WITH NO SUPPORT FROM MY COHORT, I BASICALLY DROWNED IN THIS MODULE AND I DON’T THINK I WILL EVER FORGIVE MYSELF FOR IT.