<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Writing rails plugins - tips and tricks - plugins with generators</title>
	<atom:link href="http://www.urubatan.info/2008/01/rails_generator_plugin_howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.urubatan.info/2008/01/rails_generator_plugin_howto/</link>
	<description>Just a little about development! Think before you write!</description>
	<pubDate>Fri, 21 Nov 2008 03:40:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: gener</title>
		<link>http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-3165</link>
		<dc:creator>gener</dc:creator>
		<pubDate>Sun, 13 Jul 2008 03:01:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-3165</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;]  [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kumar</title>
		<link>http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-3065</link>
		<dc:creator>kumar</dc:creator>
		<pubDate>Mon, 07 Jul 2008 12:18:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-3065</guid>
		<description>This is really good post for plugin generator, I am searching  for same  kind of post..now got it ..thanks! :)</description>
		<content:encoded><![CDATA[<p>This is really good post for plugin generator, I am searching  for same  kind of post..now got it ..thanks! <img src='http://www.urubatan.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas</title>
		<link>http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-3041</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Sat, 05 Jul 2008 12:03:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-3041</guid>
		<description>Hi,
Thank you so much for this tutorial.
I work with rails for 6 months and I have a question, I've never found answer. 
I would like to run a "generate" from a rails application. 
For example, I would like to call "ruby script\generate test_gen asdas_dasda asd:ash" but from a controller. It means generating files with template and associate this action with an action of one of my controller
Thank you for any help
Nicolas B</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thank you so much for this tutorial.<br />
I work with rails for 6 months and I have a question, I&#8217;ve never found answer.<br />
I would like to run a &#8220;generate&#8221; from a rails application.<br />
For example, I would like to call &#8220;ruby script\generate test_gen asdas_dasda asd:ash&#8221; but from a controller. It means generating files with template and associate this action with an action of one of my controller<br />
Thank you for any help<br />
Nicolas B</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas</title>
		<link>http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-3030</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Fri, 04 Jul 2008 13:16:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-3030</guid>
		<description>Amazing. Thank you so much for so greate tutorial
Nicolas</description>
		<content:encoded><![CDATA[<p>Amazing. Thank you so much for so greate tutorial<br />
Nicolas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: goodwill</title>
		<link>http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-2079</link>
		<dc:creator>goodwill</dc:creator>
		<pubDate>Tue, 22 Apr 2008 15:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-2079</guid>
		<description>I am trying to customize rails 2.0.x scaffold generator then come across this blog. I wonder if you know I could extend the feature in Rails::Generator::Commands::Create within the generator to add additional method (such as namespaces based route generation) ? Sample code would be very appreciated.</description>
		<content:encoded><![CDATA[<p>I am trying to customize rails 2.0.x scaffold generator then come across this blog. I wonder if you know I could extend the feature in Rails::Generator::Commands::Create within the generator to add additional method (such as namespaces based route generation) ? Sample code would be very appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stronghold crusader extreme</title>
		<link>http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-1966</link>
		<dc:creator>stronghold crusader extreme</dc:creator>
		<pubDate>Thu, 10 Apr 2008 18:16:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-1966</guid>
		<description>Very useful information :) I see there are realy good tips. I am going to use some of them</description>
		<content:encoded><![CDATA[<p>Very useful information <img src='http://www.urubatan.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> I see there are realy good tips. I am going to use some of them</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stronghold crusader extreme</title>
		<link>http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-1799</link>
		<dc:creator>stronghold crusader extreme</dc:creator>
		<pubDate>Thu, 27 Mar 2008 18:05:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-1799</guid>
		<description>Very nice :) btw very good tips i will use them.</description>
		<content:encoded><![CDATA[<p>Very nice <img src='http://www.urubatan.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> btw very good tips i will use them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterh</title>
		<link>http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-930</link>
		<dc:creator>peterh</dc:creator>
		<pubDate>Mon, 28 Jan 2008 22:34:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-930</guid>
		<description>Worked perfectly, thanks :)</description>
		<content:encoded><![CDATA[<p>Worked perfectly, thanks <img src='http://www.urubatan.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Urubatan</title>
		<link>http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-914</link>
		<dc:creator>Urubatan</dc:creator>
		<pubDate>Mon, 28 Jan 2008 11:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-914</guid>
		<description>Sorry, it was my mistake, I forgot to add the following line in the text:
to be able to access the attributes migration_name and migration_action in the template, we need create the accessor methods for them, it is as easy as adding the following line to the TestGenGenerator  class:
&lt;pre lang="ruby" line="1"&gt;
attr_accessor :migration_name, :migration_action
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Sorry, it was my mistake, I forgot to add the following line in the text:<br />
to be able to access the attributes migration_name and migration_action in the template, we need create the accessor methods for them, it is as easy as adding the following line to the TestGenGenerator  class:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="ruby">attr_accessor <span style="color:#ff3333; font-weight:bold;">:migration_name</span>, <span style="color:#ff3333; font-weight:bold;">:migration_action</span></pre></td></tr></table></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: peterh</title>
		<link>http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-897</link>
		<dc:creator>peterh</dc:creator>
		<pubDate>Sun, 27 Jan 2008 20:32:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.urubatan.info/2008/01/rails_generator_plugin_howto/#comment-897</guid>
		<description>I get errors when I try following these steps and running the generator.

First of all, I get "undefined local variable or method `file' for #", and if I comment out the m.file line that goes away.

Then, I get "undefined local variable or method `migration_name' for #". If I change all the references to migration_name and migration_action in the template to be instance variables, which I expected them to be, the error becomes "You have a nil object when you didn't expect it!
The error occurred while evaluating nil.underscore", and the generated migration file is empty.</description>
		<content:encoded><![CDATA[<p>I get errors when I try following these steps and running the generator.</p>
<p>First of all, I get &#8220;undefined local variable or method `file&#8217; for #&#8221;, and if I comment out the m.file line that goes away.</p>
<p>Then, I get &#8220;undefined local variable or method `migration_name&#8217; for #&#8221;. If I change all the references to migration_name and migration_action in the template to be instance variables, which I expected them to be, the error becomes &#8220;You have a nil object when you didn&#8217;t expect it!<br />
The error occurred while evaluating nil.underscore&#8221;, and the generated migration file is empty.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
