<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dirkjanswagerman.nl/index.php?action=history&amp;feed=atom&amp;title=Partial</id>
	<title>Partial - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dirkjanswagerman.nl/index.php?action=history&amp;feed=atom&amp;title=Partial"/>
	<link rel="alternate" type="text/html" href="https://wiki.dirkjanswagerman.nl/index.php?title=Partial&amp;action=history"/>
	<updated>2026-10-25T11:51:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.dirkjanswagerman.nl/index.php?title=Partial&amp;diff=3354&amp;oldid=prev</id>
		<title>Dirkjan: Created page with &quot;A partial is a snippet of HTML and Ruby code that can be reused in multiple locations:  {{{ &lt;h1&gt;New post&lt;/h1&gt;   &lt;%= render &#039;form&#039; %&gt;   &lt;%= link_to &#039;Back&#039;, posts_path %&gt; }}}  T...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.dirkjanswagerman.nl/index.php?title=Partial&amp;diff=3354&amp;oldid=prev"/>
		<updated>2020-08-25T09:52:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;A partial is a snippet of HTML and Ruby code that can be reused in multiple locations:  {{{ &amp;lt;h1&amp;gt;New post&amp;lt;/h1&amp;gt;   &amp;lt;%= render &amp;#039;form&amp;#039; %&amp;gt;   &amp;lt;%= link_to &amp;#039;Back&amp;#039;, posts_path %&amp;gt; }}}  T...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A partial is a snippet of HTML and Ruby code that can be reused in multiple locations:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
&amp;lt;h1&amp;gt;New post&amp;lt;/h1&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;%= render &amp;#039;form&amp;#039; %&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;%= link_to &amp;#039;Back&amp;#039;, posts_path %&amp;gt;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
The {{{&amp;lt;%= render &amp;#039;form&amp;#039; %&amp;gt;}}} line is our first introduction to partials in Rails. A partial is a snippet of HTML and Ruby code that can be reused in multiple locations. In this case, the form used to make a new post is basically identical to the form used to edit a post, both having text fields for the name and title, a text area for the content, and a button to create the new post or to update the existing one.&lt;br /&gt;
&lt;br /&gt;
Source: http://guides.rubyonrails.org/getting_started.html&lt;br /&gt;
[[Category:ruby]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Term]]&lt;/div&gt;</summary>
		<author><name>Dirkjan</name></author>
		
	</entry>
</feed>