<?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: Rails 1.2 impact on Ajuby release 0.4</title>
	<atom:link href="http://www.savedmyday.com/2007/02/10/rails-12-impact-on-ajuby-release-04/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.savedmyday.com/2007/02/10/rails-12-impact-on-ajuby-release-04/</link>
	<description></description>
	<pubDate>Fri, 30 Jul 2010 03:23:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Rajesh Shetty</title>
		<link>http://www.savedmyday.com/2007/02/10/rails-12-impact-on-ajuby-release-04/#comment-380</link>
		<dc:creator>Rajesh Shetty</dc:creator>
		<pubDate>Wed, 07 Mar 2007 19:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.savedmyday.com/?p=76#comment-380</guid>
		<description>I did this fix provided by "cedric" and this fix has been posted in quite a few places but it never worked for me. I guess even if it works, my idea is to avoid moving out any code from Theme extension files to Rails routes code, with that we are cluttering routes.rb with your custom plugin routes and that is not a smart solution but its a good hack. &lt;br/&gt;   In fact I have found the solution that will work with Rails 1.2.X without moving anything out of Theme support code. I have posted the fix in this link &lt;br/&gt;&lt;br/&gt;http://www.ruby-forum.com/topic/100163#215694&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;I'm also posting the fix here&lt;br/&gt;&lt;br/&gt;# Go to vendor/plugins/theme_support/lib/patches/routeset_ex.rb&lt;br/&gt;# Replace "draw" method with following&lt;br/&gt;&lt;br/&gt;   def draw&lt;br/&gt;        clear!&lt;br/&gt;        create_theme_routes&lt;br/&gt;        yield Mapper.new(self)&lt;br/&gt;        named_routes.install&lt;br/&gt;   end&lt;br/&gt;&lt;br/&gt;# In create_theme_routes method&lt;br/&gt;  - replace named_route with add_named_route&lt;br/&gt;  - replace connect with add_route&lt;br/&gt;&lt;br/&gt;So your create_theme_routes should look like this&lt;br/&gt;&lt;br/&gt;  def create_theme_routes&lt;br/&gt;    add_named_route 'theme_images', "/themes/:theme/images/:filename",&lt;br/&gt;:controller=&gt;'theme', :action=&gt;'images'&lt;br/&gt;    add_named_route 'theme_stylesheets',&lt;br/&gt;"/themes/:theme/stylesheets/:filename", :controller=&gt;'theme',&lt;br/&gt;:action=&gt;'stylesheets'&lt;br/&gt;    add_named_route 'theme_javascript',&lt;br/&gt;"/themes/:theme/javascript/:filename", :controller=&gt;'theme',&lt;br/&gt;:action=&gt;'javascript'&lt;br/&gt;&lt;br/&gt;    add_route "/themes/*whatever", :controller=&gt;'theme',&lt;br/&gt;:action=&gt;'error'&lt;br/&gt;  end</description>
		<content:encoded><![CDATA[<p>I did this fix provided by &#8220;cedric&#8221; and this fix has been posted in quite a few places but it never worked for me. I guess even if it works, my idea is to avoid moving out any code from Theme extension files to Rails routes code, with that we are cluttering routes.rb with your custom plugin routes and that is not a smart solution but its a good hack. <br />   In fact I have found the solution that will work with Rails 1.2.X without moving anything out of Theme support code. I have posted the fix in this link </p>
<p><a href="http://www.ruby-forum.com/topic/100163#215694" rel="nofollow">http://www.ruby-forum.com/topic/100163#215694</a></p>
<p>I&#8217;m also posting the fix here</p>
<p># Go to vendor/plugins/theme_support/lib/patches/routeset_ex.rb<br /># Replace &#8220;draw&#8221; method with following</p>
<p>   def draw<br />        clear!<br />        create_theme_routes<br />        yield Mapper.new(self)<br />        named_routes.install<br />   end</p>
<p># In create_theme_routes method<br />  - replace named_route with add_named_route<br />  - replace connect with add_route</p>
<p>So your create_theme_routes should look like this</p>
<p>  def create_theme_routes<br />    add_named_route &#8216;theme_images&#8217;, &#8220;/themes/:theme/images/:filename&#8221;,<br />:controller=>&#8217;theme&#8217;, :action=>&#8217;images&#8217;<br />    add_named_route &#8216;theme_stylesheets&#8217;,<br />&#8220;/themes/:theme/stylesheets/:filename&#8221;, :controller=>&#8217;theme&#8217;,<br />:action=>&#8217;stylesheets&#8217;<br />    add_named_route &#8216;theme_javascript&#8217;,<br />&#8220;/themes/:theme/javascript/:filename&#8221;, :controller=>&#8217;theme&#8217;,<br />:action=>&#8217;javascript&#8217;</p>
<p>    add_route &#8220;/themes/*whatever&#8221;, :controller=>&#8217;theme&#8217;,<br />:action=>&#8217;error&#8217;<br />  end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.savedmyday.com/2007/02/10/rails-12-impact-on-ajuby-release-04/#comment-379</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 26 Feb 2007 22:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.savedmyday.com/?p=76#comment-379</guid>
		<description>You can also use the fix mentioned by 'cedric' here:&lt;br/&gt;&lt;br/&gt;&lt;a HREF="http://agilewebdevelopment.com/plugins/theme_support" REL="nofollow"&gt;http://agilewebdevelopment.com/plugins/theme_support&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;This entails just moving and reformating the named routes in routeset_ex.rb into config/routes.rb.</description>
		<content:encoded><![CDATA[<p>You can also use the fix mentioned by &#8216;cedric&#8217; here:</p>
<p><a HREF="http://agilewebdevelopment.com/plugins/theme_support" REL="nofollow">http://agilewebdevelopment.com/plugins/theme_support</a></p>
<p>This entails just moving and reformating the named routes in routeset_ex.rb into config/routes.rb.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
