Fast fact for today:
In the context of the app I'm building, views with the same code to render html forms can be consolidated into a partial. For example, a file called _form.html.erb
with a name, email, password, etc. that appears on both signup and edit views can be accessed via render 'form'
. Simply add a button text symbol to make the text appropriate and then use yield(:button_text)
to show correctly on each page.