<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Pretty Blocks in Rails Views</title>
	<atom:link href="http://pathfindersoftware.com/2008/07/pretty-blocks-in-rails-views/feed/" rel="self" type="application/rss+xml" />
	<link>http://pathfindersoftware.com/2008/07/pretty-blocks-in-rails-views/</link>
	<description>The Fastest Way to Launch Successful Software</description>
	<lastBuildDate>Thu, 19 Jan 2012 16:36:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: jlfenaux</title>
		<link>http://pathfindersoftware.com/2008/07/pretty-blocks-in-rails-views/#comment-8413</link>
		<dc:creator>jlfenaux</dc:creator>
		<pubDate>Mon, 16 Feb 2009 10:28:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=998#comment-8413</guid>
		<description>You&#039;re my savior Josh. I had been messing around with helpers methods, and didn&#039;t like the result.

Your technique is much more elegant and certainly more readable and updatable.

You rock !</description>
		<content:encoded><![CDATA[<p>You&#8217;re my savior Josh. I had been messing around with helpers methods, and didn&#8217;t like the result.</p>
<p>Your technique is much more elegant and certainly more readable and updatable.</p>
<p>You rock !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruby on Rails &#187; 2008: A Year That Was &#187; Pathfinder Development</title>
		<link>http://pathfindersoftware.com/2008/07/pretty-blocks-in-rails-views/#comment-8412</link>
		<dc:creator>Ruby on Rails &#187; 2008: A Year That Was &#187; Pathfinder Development</dc:creator>
		<pubDate>Fri, 26 Dec 2008 17:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=998#comment-8412</guid>
		<description>[...] Pretty Blocks In Rails Views [...]</description>
		<content:encoded><![CDATA[<p>[...] Pretty Blocks In Rails Views [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pathfinder Development &#187; Rails 2.2 For Me And For You</title>
		<link>http://pathfindersoftware.com/2008/07/pretty-blocks-in-rails-views/#comment-8411</link>
		<dc:creator>Pathfinder Development &#187; Rails 2.2 For Me And For You</dc:creator>
		<pubDate>Fri, 31 Oct 2008 19:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=998#comment-8411</guid>
		<description>[...] This may be the most subtle change I&#039;ve ever been this excited about. Let&#039;s go back to the bad old days -- last week -- and say that you wanted to write a block helper method like this: [...]</description>
		<content:encoded><![CDATA[<p>[...] This may be the most subtle change I&#8217;ve ever been this excited about. Let&#8217;s go back to the bad old days &#8212; last week &#8212; and say that you wanted to write a block helper method like this: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cs</title>
		<link>http://pathfindersoftware.com/2008/07/pretty-blocks-in-rails-views/#comment-8410</link>
		<dc:creator>cs</dc:creator>
		<pubDate>Fri, 17 Oct 2008 12:06:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=998#comment-8410</guid>
		<description>sorry, the view code was sanitized ...

in view:
ajax_call(params) do
 a_method_to_be_called(with_params)
end</description>
		<content:encoded><![CDATA[<p>sorry, the view code was sanitized &#8230;</p>
<p>in view:<br />
ajax_call(params) do<br />
 a_method_to_be_called(with_params)<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cs</title>
		<link>http://pathfindersoftware.com/2008/07/pretty-blocks-in-rails-views/#comment-8409</link>
		<dc:creator>cs</dc:creator>
		<pubDate>Fri, 17 Oct 2008 12:04:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=998#comment-8409</guid>
		<description>Very interesting!

These techniques opens up many possibilities, some even very strange:

in view:

 a_method_to_be_called(with_params)


the ajax_call in the helper:
concat(
 link_to_remote(&quot;Add&quot;, :url=&gt; {:controller =&gt; ..., :action =&gt; ..., :block =&gt; capture(&amp;block)}
), block.binding)

This means we can pass to controllers functions to be executed, functions defined freely in views.

Does this sound weird for you?</description>
		<content:encoded><![CDATA[<p>Very interesting!</p>
<p>These techniques opens up many possibilities, some even very strange:</p>
<p>in view:</p>
<p> a_method_to_be_called(with_params)</p>
<p>the ajax_call in the helper:<br />
concat(<br />
 link_to_remote(&#8220;Add&#8221;, :url=&gt; {:controller =&gt; &#8230;, :action =&gt; &#8230;, :block =&gt; capture(&amp;block)}<br />
), block.binding)</p>
<p>This means we can pass to controllers functions to be executed, functions defined freely in views.</p>
<p>Does this sound weird for you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Lopes</title>
		<link>http://pathfindersoftware.com/2008/07/pretty-blocks-in-rails-views/#comment-8408</link>
		<dc:creator>Daniel Lopes</dc:creator>
		<pubDate>Thu, 31 Jul 2008 17:44:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=998#comment-8408</guid>
		<description>Thanks for the advice, really helpfull. I prefer use the rails default (prototype and scriptaculous )and how good will be if prototype add corner method to your features.</description>
		<content:encoded><![CDATA[<p>Thanks for the advice, really helpfull. I prefer use the rails default (prototype and scriptaculous )and how good will be if prototype add corner method to your features.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith Carter</title>
		<link>http://pathfindersoftware.com/2008/07/pretty-blocks-in-rails-views/#comment-8407</link>
		<dc:creator>Keith Carter</dc:creator>
		<pubDate>Wed, 16 Jul 2008 01:47:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=998#comment-8407</guid>
		<description>There are a couple of errors in the code samples in the &quot;Here&#039;s an example of the rounded_corner code I actually use in my applications&quot; part of this post.

First, the &quot;rounded_yellow_box&quot; call needs a &quot;do&quot; at the end of it.

And &quot;if options[:background]&quot; needs to be followed by a &quot;then&quot;.</description>
		<content:encoded><![CDATA[<p>There are a couple of errors in the code samples in the &#8220;Here&#8217;s an example of the rounded_corner code I actually use in my applications&#8221; part of this post.</p>
<p>First, the &#8220;rounded_yellow_box&#8221; call needs a &#8220;do&#8221; at the end of it.</p>
<p>And &#8220;if options[:background]&#8221; needs to be followed by a &#8220;then&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lawrence Pit</title>
		<link>http://pathfindersoftware.com/2008/07/pretty-blocks-in-rails-views/#comment-8406</link>
		<dc:creator>Lawrence Pit</dc:creator>
		<pubDate>Mon, 14 Jul 2008 01:10:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=998#comment-8406</guid>
		<description>Choosing a different template engine might improve readability and reusability even further. I use haml and jquery, and all I do is:

  .corner Rounded corners are so Web 2.0.

and in application.js:

  $(&#039;.corner&#039;).corner();

and in css e.g.:

  .corner { background:#ffe; border:1px solid #999; }

Can&#039;t get easier then this.</description>
		<content:encoded><![CDATA[<p>Choosing a different template engine might improve readability and reusability even further. I use haml and jquery, and all I do is:</p>
<p>  .corner Rounded corners are so Web 2.0.</p>
<p>and in application.js:</p>
<p>  $(&#8216;.corner&#8217;).corner();</p>
<p>and in css e.g.:</p>
<p>  .corner { background:#ffe; border:1px solid #999; }</p>
<p>Can&#8217;t get easier then this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J. Ryan Sobol</title>
		<link>http://pathfindersoftware.com/2008/07/pretty-blocks-in-rails-views/#comment-8405</link>
		<dc:creator>J. Ryan Sobol</dc:creator>
		<pubDate>Sun, 13 Jul 2008 01:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=998#comment-8405</guid>
		<description>Well-written article and your code really pushes deep into rails helpers.  Well done!

Unfortunately, readers should be cautious of injecting HTML syntax directly into helper methods in ruby.  Typically, the larger the project, the faster the HTML changes.  And if your designers aren&#039;t familiar with ruby, then change becomes hard.</description>
		<content:encoded><![CDATA[<p>Well-written article and your code really pushes deep into rails helpers.  Well done!</p>
<p>Unfortunately, readers should be cautious of injecting HTML syntax directly into helper methods in ruby.  Typically, the larger the project, the faster the HTML changes.  And if your designers aren&#8217;t familiar with ruby, then change becomes hard.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://pathfindersoftware.com/2008/07/pretty-blocks-in-rails-views/#comment-8404</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Sat, 12 Jul 2008 04:09:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=998#comment-8404</guid>
		<description>Good points.  Much of this was discussed before, but reminders are always good.

http://www.igvita.com/2007/03/15/block-helpers-and-dry-views-in-rails/</description>
		<content:encoded><![CDATA[<p>Good points.  Much of this was discussed before, but reminders are always good.</p>
<p><a href="http://www.igvita.com/2007/03/15/block-helpers-and-dry-views-in-rails/" rel="nofollow">http://www.igvita.com/2007/03/15/block-helpers-and-dry-views-in-rails/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (User agent is rejected)
Page Caching using memcached (User agent is rejected)

Served from: pathfindersoftware.com @ 2012-02-10 01:14:01 -->
