Hack hack hack...

An open journal-- some of it written for you, but most of it is for me.

FIS Day20

UMLs

SQL

  • A has_many :through type query
1
SELECT * FROM song_genres INNER JOIN genres ON genre.id = genre_id FROM song_genre WHERE song_id = 1

Avoiding has_and_belongs_to_many

Lessons Learned

  • Parameters in a method HAVE TO BE comma delimited:
1
form_tag(url_for_options = {}, options = {}, &block)
  • When using build, you just need to save the parent.

Comments