mznmel / progmr

Progmr.com
11 stars 4 forks source link

Check the existence of Post before rendering the view #1

Closed cenrak closed 7 months ago

cenrak commented 11 years ago

https://github.com/mkhDev/progmr/blob/master/app/controllers/posts_controller.rb#L18 It's better to redirect to NotFound page with status 404 if the desired ID is not found