Open coderschoolreview opened 7 years ago
Hello CoderSchool,
Thanks so much for your review and let me improve my app.
I fixed all above point, except using show instead details. The idea is, I want to count view only when user visit the post by click on post title at home page. If we merge details to show, the view counter is also increased when user updated a post successfully or click on Show button.
Looking forward your feedback.
Hi @scripts1988, Glad to hear that you'll fix and update your app. We'll wait for that.
Actually, you don't need to have show button to redirect user to article's content and show method
can handle view counter itself. We love to discuss more about this with you when you start learning with us.
Let's schedule a quick call to confirm that this course is a right fit for you. We also would like to know a little more about your experience. Please book a slot from here.
Hello @coderschoolreview, I fixed all review point already. You can check it (exclude show/details point) I will check and confirm slot
Hi @scripts1988, thanks for your hard work on pre-work submission.
Great things:
Suggestions:
routes.rb
file. This will cause error when you visiting via root url: To solve this, you can simply add this toroutes.rb
:scaffolds.scss
file to solve this.<p id="notice">Article was successfully destroyed.</p>
, consider rendering it as<div class="alert alert-success">Article was successfully destroyed.</div>
. Here's an example of how to do it.show method
already handle showing details content, so you don't have to create one moredetails method
. This is sample:def details @markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML)
end
AFTER
def show @markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML)
Handle view count using increment
end
Just some feedback to improve your app. Feel free to edit and update your submission then tell us to re-check it. If you have any questions or you need any support, feel free to contact us via gitter chat or email us.