NavBar

Showing posts with label railsapp. Show all posts
Showing posts with label railsapp. Show all posts

Monday, December 22, 2014

Monday's progress.


With technology projects, like many other aspects of life, though it seems you’ll never get it right, and never get it done, there are moments when you can savor a sense of accomplishment. This is one of those moments. -Daniel Kehoe, Learn Rails Tutorial

Sunday's progress:

  • Got mailer setup and working.
  • Got site deployed to Heroku and working.
  • Even though I was getting all this stuff done, troubleshooting and fixing stuff, I felt incredibly overwhelmed and confused again about controllers, views, and models.  
  • Felt down because I was confused and felt like I didn't understand anything at all and felt like I hadn't learned anything in the tutorial, but just following instructions.


Today's progress:


  • I got a good 4 hours of studying done at the library before it was time to go home and walk/feed the dogs.
  • In that time, I re-read much of what I had just done/learned in the Learn Rails tutorial. 
  • I googled A LOT.  Learning about RESTful design.  Learning about 'skinny controller, fat model.'  Looking up more about ActiveRecord, ActiveModel, ActionController & Mailer. Looking up about using render vs. redirect_to in the controller methods.
  • Reading RubyDocs like "Rails routing from the outside in."
  • When I got back home, I finished up the bulk of the tutorial, adding segment.io JS to create analytics via google analytics.  And pushed it to heroku and made sure it was working via checking the real-time analytics tracking.
  • I feel a little less completely lost this evening.
  • In the past few days, I've read over 250 pages (and re-read most of those) of the Learn Rails tutorial.  I have about 70 more pages to finish.

Friday, December 19, 2014

Thurs and Friday progress.

Not too much progress, I did some more work in Kehoe's Learn Rails tutorial, but not as much as I hoped for.  I learned more about the conventions in Rails, using Foundations CSS styling (not sure I like it more than Bootstrap, but we'll see as I do more with it), and a little review of basic ruby.  I guess I was hoping to be done with it in 2-3 days.  Only excuse I have is that I've been sick.

I'm hoping to feel better over the weekend, get more work done, and extend my 5 day streak of commits on github :)

I also did the git/brew upgrade to fix the security issue with git.  I swear, I can never have a simple upgrade/install on my machine with the command line.  It always requires going to stack overflow to find solutions to my problem.  I also feel like I try one solution, doesn't work.  so I keep going and randomly trying more and more advice.  I wish I understood what I am doing more on there.  I got Git to update finally, only for my terminal to say the old version # when I checked it.  but if I went to upgrade, it said the new version of git was already installed, wtf?  Luckily with a close/reopen of the terminal window, it was only showing the most recent version install and everything seems to be peachy now.  whew.

I've been feeling like I have no idea what I'm doing the past couple days.  Self-doubt.  Hopefully I'll perk up when I start to feel better.  I don't feel like I've been able to think clearly at all and my learning is stunted.

Thursday, December 18, 2014

Learn Rails Tutorial started!

I started Daniel Kehoe's Learn Rails book on Tuesday.  I'm excited to do this tutorial!  I decided to do it before starting Hartl's Rails tutorial to get more practice and because the application I will be building during the book will be suitable for a small business... it includes contact form and mailing list features.  This will be great since the first independent project I'm going to take on is making a new website for my dad's business!

I got through chaper 12, setting up my new project and getting git setup along the way, and then got stuck for hours on the dumbest mistake ever.  I'm pretty embarassed that I wasted my evening on such a silly error.  I was editing my .bashrc file and secrets.yml file in the app to setup environment variables in the bash file so they aren't revealed in the secrets.yml file.  I kept getting one of two errors:  my secret_key_base wasn't defined in the secrets.yml file and an error similar to this one: "ruby/2.1.0/psych.rb:370:in `parse': (<unknown>): could not find expected ':' while scanning a simple key at line 18 column 1 (Psych::SyntaxError)"

After systematically going through replacing variables in secrets.yml file with hard values, checking the multiple bash files on my computer for conflicts (bash_profile, bashrc, profile, zshrc, etc), I finally found the problem and felt so dumb.  When I was opening up my bash files, I was just clicking them in Finder and the default textEdit program for Mac was opening them instead of opening them in my text editor, Atom.  So, the problem was, that the textEdit program was adding formatting that couldn't be interpreted properly by my computer.  DUMB!  Once I went through them and re-did my bashrc file in Atom, it all works!

I could continue to beat myself up for making this mistake, but it is better to laugh at it and learn, and never make it again!

Thursday, November 13, 2014

XCode, HomeBrew, RVM, Ruby, Rails.... wheee!

Set up my dev environment today.  Wow, was that frustrating!

I had a slew of error messages but luckily with googling, stackoverflow, and some uninstalling/reinstalling Xcode and RVM and updating OpenSSL, I finally got everything installed by following the RailApps Tutorial.  Whew.  I am learning about how to use a Mac (long-time PC user until a year ago when Win8 changed my mind) alongside learning how to be a developer!

Glad I accomplished this today, I was so disappointed this morning when I was trying to figure it out and I kept getting 3 different error messages.  This took me most of the day to figure out and finish the install, but it's done and working as far as I know!