Questions about javascript in rails

0

I would like to know some points about rails:

When I am in a completed post view and I resolve to leave it, how do I post an alert warning that I can lose these changes?

Is it possible to display a deleted post, or is it possible to insert that will be marked as deleted but still present in the database?

Is it possible to display an alert when a post with the same title already exists?

Is it possible that some fields appear in the edit view but do not appear in the creation view of a new post, since both are part of the same form?

_form.html

    
asked by anonymous 13.03.2018 / 15:10

0 answers