<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.logicwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=Ruby_-_Partial_Pages</id>
		<title>Ruby - Partial Pages - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://www.logicwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=Ruby_-_Partial_Pages"/>
		<link rel="alternate" type="text/html" href="https://www.logicwiki.co.uk/index.php?title=Ruby_-_Partial_Pages&amp;action=history"/>
		<updated>2026-05-15T18:00:37Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>https://www.logicwiki.co.uk/index.php?title=Ruby_-_Partial_Pages&amp;diff=701&amp;oldid=prev</id>
		<title>Dt1nh6: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.logicwiki.co.uk/index.php?title=Ruby_-_Partial_Pages&amp;diff=701&amp;oldid=prev"/>
				<updated>2016-05-09T13:27:51Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 13:27, 9 May 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='en'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Dt1nh6</name></author>	</entry>

	<entry>
		<id>https://www.logicwiki.co.uk/index.php?title=Ruby_-_Partial_Pages&amp;diff=700&amp;oldid=prev</id>
		<title>Macrop: Created page with &quot;Category:RubyOnRails  To link to another page  &lt;pre class=&quot;brush:ror;&quot;&gt; &lt;%= link_to &quot;Alpha Blog&quot;, articles_path %&gt; &lt;/pre&gt;  Under app/views/layouts folder create a _message...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.logicwiki.co.uk/index.php?title=Ruby_-_Partial_Pages&amp;diff=700&amp;oldid=prev"/>
				<updated>2015-12-01T08:41:45Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php?title=Category:RubyOnRails&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:RubyOnRails (page does not exist)&quot;&gt;Category:RubyOnRails&lt;/a&gt;  To link to another page  &amp;lt;pre class=&amp;quot;brush:ror;&amp;quot;&amp;gt; &amp;lt;%= link_to &amp;quot;Alpha Blog&amp;quot;, articles_path %&amp;gt; &amp;lt;/pre&amp;gt;  Under app/views/layouts folder create a _message...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:RubyOnRails]]&lt;br /&gt;
&lt;br /&gt;
To link to another page &lt;br /&gt;
&amp;lt;pre class=&amp;quot;brush:ror;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%= link_to &amp;quot;Alpha Blog&amp;quot;, articles_path %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Under app/views/layouts folder create a _messages.html.erb file (messages partial) and remove the following code from application.html.erb to this file:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;brush:ror;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;% flash.each do |name, msg| %&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;%= msg %&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
In place of this code in the application.html.erb add the following code:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;brush:ror;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%= render 'layouts/messages' %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Create a file under app/views/articles folder called _form_html.erb and fill it in with the following code (copied from the new or edit.html.erb page):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;brush:ror;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;% if @article.errors.any? %&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;The following errors prevented the article from getting created&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;% @article.errors.full_messages.each do |msg| %&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;%= msg %&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;%= form_for @article do |f| %&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;%= f.label :title %&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%= f.text_field :title %&amp;gt;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;%= f.label :description %&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%= f.text_area :description %&amp;gt;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;%= f.submit %&amp;gt;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;%= link_to &amp;quot;Back to articles listing&amp;quot;, articles_path %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then remove the code above from both new.html.erb and edit.html.erb files and in it's place add the following code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;brush:ror;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%= render 'form' %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Macrop</name></author>	</entry>

	</feed>