TheIronYard--Orlando / 2015--SUMMER--ROR

Resources and homework for the Summer 2015 Ruby on Rails cohort @TheIronYard--Orlando.
9 stars 6 forks source link

16--Pump-the-Brakes-on-Rails--Heidi Roude #129

Open HRoude opened 9 years ago

HRoude commented 9 years ago

Coming up on the halfway point of lecture. We'll pause this week to work out some kinks. Take some time tonight to write down where you're getting stuck and what you feel like would be most useful to get past it, so I can structure this week based on your needs. Put this work in a branch called journal-week-4 in your USERNAME.github.io repo. Don't forget to link to that PR in your WIP Issue!

Write solutions for the three problems listed. Once all the tests pass, copy into files in your TIY-Assignments repo.

Address the open issue in the granular app. Push your code from local to your github granular app repo, and open a PR from there to the class granular app repo.

Look over the code I wrote for today and pick out which pieces would be useful in a Connect Four game and which would have to be rewritten. Write down what you think in a README.md file.

HRoude commented 9 years ago

https://github.com/HRoude/HRoude.github.io/blob/journal-week-4/journal-week-4.md

Link to Journal Week 4

HRoude commented 9 years ago

https://github.com/HRoude/TIY-Assignments/pull/13

Link to PR (closed by accident :-) ) for Katas exercises.

HRoude commented 9 years ago

https://github.com/HRoude/ror_granular_app/tree/16--Pump-the-Brakes-on-Rails/app Link to ror_granular_app

https://github.com/TheIronYard--Orlando/ror_granular_app/pull/14 Link to PR for ror_granular_app

I initially had all the items working properly -- until I tried to edit a restaurant. When the :hours showed in the text_field, all the curly braces, hash rockets, characters also showed. Consequently, it saved the updated edited version of the restaurant to the db file with the hash characters. Thus, when trying to click back on that specific restaurant results in an error, as the line of code to pull the :hours data is set up according to the hash of hashes; which no longer exits.

Furthermore, when adding a new restaurant, the same problem exits.

I personally think we need to petition all the restaurants in downtown Orlando to be open 24 hours, thus just being able to put a default value of "24 hours" in the :hours column. :-) But then again, that might only be in my little happy world.

I think I messed up in the def create code block of the restaurants_controller file.

Besides that, I am pretty stoked about "kind of" feeling enlightened to how this all coordinates together with Rails and actually being able to wrap my head around it to do it. I knew what to attempt to do, even though it didn't always work on the first time.

That's all I got to say about that.

HRoude commented 9 years ago

Didn't get home until after 10pm from daily kids sports activities. Spent most of my time on the restaurants - ror_granular_app assignment. Did not have time to look at Connect Four rules/regulations, nor how the code would differ. Plan to start to write out README.md in morning on what difference I would expect in an outline. I most likely will not get to the actual code part.

bgates commented 9 years ago

The actual code part is not at all expected.

I like the 24 hour idea.