Skip to content

Instantly share code, notes, and snippets.

@kenmazaika
Created April 2, 2015 16:23
Show Gist options
  • Save kenmazaika/dff5905947bd4b10d84d to your computer and use it in GitHub Desktop.
Save kenmazaika/dff5905947bd4b10d84d to your computer and use it in GitHub Desktop.
18:11:47 From aaronwashburn : Per Ken’s suggested I did
18:11:53 From Marco Morawec : https://docs.google.com/document/d/1DSo0bHUAGE8kppmwGVTIVdsP6C2WiNWnnOEIFL9pJtQ/edit?usp=sharing
18:12:16 From aaronwashburn : has_many :collaborating_clients, :through :collaborations, :source => :client
18:12:56 From aaronwashburn : This gave me all clients but in 2 variables. Any way to combine those into just one call or am I back to combining them as an array?
18:14:56 From Mal : By “2 variables”, do you mean “clients” and “collaborating_clients”?
18:15:30 From aaronwashburn : Yes, with Ken’s suggestions I get @user.clients and @user.collaborating_clients. I would love to access them as I call.
18:15:39 From aaronwashburn : as one call....
18:19:49 From Marco Morawec : flixter/app/assets/views/instructor/courses/new.html.erb
<%= simple_form_for @course, :url => instructor_courses_path do |f| %>
vs.
flixter/app/assets/views/layouts/application/new.html.erb (in the footer)
<%= link_to 'Teach a course', new_instructor_course_path %>
18:21:47 From Hayli : yup just got up:)
18:22:25 From Mal : We could make a scope on Client, to find Clients based on user, or based on collaborations that the user is in
18:22:51 From aaronwashburn : OK. I’ll check that out.
18:22:55 From aaronwashburn : Thanks.
18:23:29 From Mal : though we should look at whether you could work with just one has_many
18:24:02 From Mal : maybe if a User has a client through collobrations, does it need to have a direct connection to a client?
18:25:09 From Ken Mazaika : class Dog
18:25:10 From Ken Mazaika : end
18:30:03 From brentsullivan : Self and This confusing...
18:33:32 From Marco Morawec : Here’s the CSS with superpowers: http://sass-lang.com/
18:33:42 From Marco Morawec : Which is what we’re using in Rails
18:38:02 From Jeremy : pg_dump
18:38:18 From Jeremy : or pq, maybe, i know the mysql stuff better
18:40:23 From forest_handford : Factory girl is a good tool for populating a new database with default data.
18:41:20 From Ken Mazaika : Check this out, Brent:
18:41:21 From Ken Mazaika : https://devcenter.heroku.com/articles/heroku-postgresql#pg-push-and-pg-pull
18:42:20 From Marco Morawec : The two gems: https://github.com/thoughtbot/factory_girl_rails
18:42:38 From Marco Morawec : faker gem: https://github.com/stympy/faker
18:42:53 From Ben : I need to head out, have a good night everyone
18:44:35 From aaronwashburn : See you Ben
18:48:34 From brentsullivan : Thx for Factory Girl and Faker!
18:49:59 From aaronwashburn : It will come along Hayli. I’m in my last couple weeks and still learning a lot about what goes where. It eventually just clicks
18:50:06 From Danny : The videos, in general, are EXTREMELY helpful in understand the “why” behind the “what"
18:52:32 From Hayli : Thanks will go through the videos in more depth
18:55:31 From brentsullivan : See you next week, everyone. Headed to another meeting.
18:55:46 From Ramon : cya
18:58:17 From Danny : see ya next time round everyone.
19:00:53 From Michael Warren : https://zapier.com/zapbook/google-docs/slack/
19:01:04 From Ramon : thanks everyone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment