Commit graph

8 commits

Author SHA1 Message Date
b68960efe5 Refactor page header code 2015-08-12 15:31:30 -04:00
c880ba31b8 Creaet simple user profile 2015-08-12 14:48:44 -04:00
86e1cd891c Fix some law of demeter violations 2015-07-20 15:15:57 -04:00
0b9286d152 Layout fixes to be closer to reddit 2015-07-15 23:39:55 -04:00
d3dd0ff848 Add the subcreddit MVC
Notes on closing subcreddit:

This doesn't seem great.  Would be slightly better if closed could be referenced
as true or false instead of '0' or '1' in the model.  Testing this is a bit
messy, but Tiemcop makes it a bit better.

Notes on subcreddit validations:

This is still not ideal.  For starters, from
http://guides.rubyonrails.org/active_record_validations.html:

"Note that some databases are configured to perform case-insensitive searches
anyway."

It also seems difficult to validate fields that are set in before_save since
validations occur before callbacks.  Revisit this (perhaps friendly_id wll save
us).
2015-07-13 17:01:12 -04:00
1abbdbac12 Add flash notices for sign in, sign out, sign up 2015-07-10 16:21:59 -04:00
3308cfc1c1 Add user sessions 2015-07-10 14:33:39 -04:00
790cb26f2a We basically are reddit now 2015-07-09 23:47:34 -04:00