/
notes.txt
67 lines (48 loc) · 2.25 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Tasks
------------------
-8/18/14-
Create race feed for homepage of user's follower's posts
races feed:
- need to create race feed function in user model
- Race.from_users_followed_by(self) -- must copy functionality from the microposts.rb model
- feed this into a @race_items symbol in static_pages_controller
- render @race_items similarly to _feed
- race partial already defined (from user's feed)
- want a race feed to include the last 5 races in a user's friends, from the last 3 months
race model:
- ADD DISTANCE!!
- add splits array to races model, use similar hash structure as the race time
- add elevation change?
user model:
- goal times for race types, specific races
-8/27/14-
- add selection of race type to race model (hash? or just a string field constrained by HTML dropdown options)
- implement an e-mail hiding option for users
-9/2/14-
- catch for 60+ seconds on time
-9/7/14-
- need to convert time to integer in order to do the 60+ seconds catch
- successfully added distance, splits and race type to race model
-9/15/14-
- add race comments. comments should be associated to races, but also have user_id of who posted it
- ability to edit, delete comments
- display comments on the individual race page
Notes
----------------------
-8/18/14-
how microposts feed works:
- feed defined in user.rb, specifically microposts, and from_users_followed_by defined in microposts.rb
- feed is fed into static_pages_controller where it's defined as @feed_items
- @feed_items is then rendered in shared/feed, iterates through it and places it based on shared/feed_item, then paginated
-8/26/14-
how followers works:
- routes defined as followers, following
- user controller defines these two, sets the @users variable and sends it to show_follow view
- member?
-8/28/14-
make races into CARDS - formatted with full info or small info (race feed holds small cards, user race list holds large cards)
-9/20/14-
what's the difference when using @var and var in views (full vs partials)?
-- partials are called (i.e. _race, _user) when rendering a model in full ( render @users )
-- when viewing a single model entry (race/show), @race defines just that specific model entry
need to see why Description and Location save as blank strings and instead set as NIL in model