I want to be able to publish webpages with my rails app. In other words, there's a button that says "submit current page" and when the user presses this button, there should be a new page with its own url. When you make a new post, there's a new webpage generated at posts/1.
<div>
Save me at /pages/one
</div>
<button>Make</button>
<div>
Save me at /pages/second
</div>
<button>Make</button> <- upon pressing this, there should be a new static page
Is there a convention to follow?
Aucun commentaire:
Enregistrer un commentaire