obrown06 / slim-overflow

A slimmed-down clone of Stack Overflow
0 stars 0 forks source link

Checkboxes #6

Open obrown06 opened 7 years ago

obrown06 commented 7 years ago

Checkboxes are screwy

aaronshim commented 7 years ago

One approach is to pattern-match the index function rather than filter out "", as seen at https://hackernoon.com/writing-a-blog-engine-in-phoenix-part-2-authorization-814c06fa7c0

Another one, I think, was in the book on the chapter on either Authentication or Ecto relationships on how to screen out "" strings from HTML forms... do you know the part I'm talking about, or do I need to go find it?

aaronshim commented 7 years ago

Oh, the book talks about a scrub_params plug that comes with the generator, in the chapter about generators, the section called "Examining the Generated Controller and View"... Is this not working for you?