Skip to content

Instantly share code, notes, and snippets.

@victorclee
Last active May 4, 2017 14:20
Show Gist options
  • Select an option

  • Save victorclee/7488e5612965f9658bdd750be49a7c8f to your computer and use it in GitHub Desktop.

Select an option

Save victorclee/7488e5612965f9658bdd750be49a7c8f to your computer and use it in GitHub Desktop.

TIL - Things I Learned

on Wednesday 05/02/2017

We talked about...

Params: query params and url segment params

  • You can only use params in the controller
  • Params is a hash, given to you by Rails
  • You should use Ruby logic as much as you can in the controller
  • All params are initailly treated as strings
  • Your method name should not be the same as your local variable

Something else...

  • We used a Faker Gem today for the contacts app! It's pretty witty!
  • Whenever you update Gemfile, you should bundle!

Today was another good day! Fixed my contacts app from previous practice, and I followed params along pretty well!! PTL!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment