lemon-wall-20836
02/08/2022, 6:49 PMlemon-wall-20836
02/08/2022, 7:26 PMhelpful-microphone-19711
02/08/2022, 8:02 PMlemon-wall-20836
02/08/2022, 8:11 PMapp/views/avo/partials/_empty_state.html.erb
file in your app. Rails will pick it up and show it. Here's the original 👇
https://github.com/avo-hq/avo/blob/main/app/views/avo/partials/_empty_state.html.erbhelpful-microphone-19711
02/14/2022, 8:41 PMlemon-wall-20836
02/15/2022, 7:58 AMlemon-wall-20836
02/15/2022, 7:59 AMsome-army-14041
02/15/2022, 11:56 AMhas_one
association? At the moment I just see an attach button...lemon-wall-20836
02/15/2022, 11:57 AMlemon-wall-20836
02/15/2022, 11:58 AMlemon-wall-20836
02/15/2022, 11:59 AMsome-army-14041
02/15/2022, 12:05 PMlemon-wall-20836
02/16/2022, 8:32 PMComment
has a polymorphic BelongsTo
association which is visible on index.
https://avodemo.herokuapp.com/avo/resources/commentslemon-wall-20836
02/16/2022, 8:33 PMhelpful-microphone-19711
02/16/2022, 8:33 PMlemon-wall-20836
02/16/2022, 8:34 PMlemon-wall-20836
02/16/2022, 8:34 PMlemon-wall-20836
02/16/2022, 8:35 PMhelpful-microphone-19711
02/16/2022, 8:36 PMlemon-wall-20836
02/16/2022, 8:38 PMlemon-wall-20836
02/16/2022, 8:39 PMPost
has many `Comment`s, when viewing one post, below on the page, in the comments list, you don't need to print the post column because it's going to be the same value (that posts title)lemon-wall-20836
02/16/2022, 8:39 PMhelpful-microphone-19711
02/16/2022, 8:40 PMlemon-wall-20836
02/16/2022, 8:42 PMclean-salesmen-51708
02/18/2022, 7:09 AMlemon-wall-20836
02/18/2022, 8:50 AMclean-salesmen-51708
02/18/2022, 8:53 AMclean-salesmen-51708
02/18/2022, 8:53 AMclass UserFilter < Avo::Filters::BooleanFilter
self.name = "User filter"
def apply(request, query, values)
return query.where(admin: true) if value[:is_admin]
query
end
def default
{
is_admin: false
}
end
def options
{
is_admin: "Is Admin"
}
end
end
lemon-wall-20836
02/18/2022, 8:53 AMclean-salesmen-51708
02/18/2022, 8:54 AM