<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comentarios para Old Emmanuel Oga&#039;s Weblog (new one is at www.emmanueloga.com)</title>
	<atom:link href="http://emmanueloga.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://emmanueloga.wordpress.com</link>
	<description>the way that denies by denying</description>
	<lastBuildDate>Mon, 12 Apr 2010 07:05:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>Comentario en Pretty printing xhtml with nokogiri and xslt por lance pollard</title>
		<link>http://emmanueloga.wordpress.com/2009/09/29/pretty-printing-xhtml-with-nokogiri-and-xslt/#comment-307</link>
		<dc:creator><![CDATA[lance pollard]]></dc:creator>
		<pubDate>Mon, 12 Apr 2010 07:05:49 +0000</pubDate>
		<guid isPermaLink="false">http://emmanueloga.wordpress.com/?p=223#comment-307</guid>
		<description><![CDATA[One last time :)

(textarea)(/textarea)
becomes
(textarea/)

and

(label)some text(/label)
becomes
\t(label)some text
(/label)]]></description>
		<content:encoded><![CDATA[<p>One last time <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>(textarea)(/textarea)<br />
becomes<br />
(textarea/)</p>
<p>and</p>
<p>(label)some text(/label)<br />
becomes<br />
\t(label)some text<br />
(/label)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en Pretty printing xhtml with nokogiri and xslt por lance pollard</title>
		<link>http://emmanueloga.wordpress.com/2009/09/29/pretty-printing-xhtml-with-nokogiri-and-xslt/#comment-306</link>
		<dc:creator><![CDATA[lance pollard]]></dc:creator>
		<pubDate>Mon, 12 Apr 2010 07:04:33 +0000</pubDate>
		<guid isPermaLink="false">http://emmanueloga.wordpress.com/?p=223#comment-306</guid>
		<description><![CDATA[Let me try to print the code again:

&lt;pre&gt;

&lt;/pre&gt;
becomes
&lt;pre&gt;

&lt;/pre&gt;

and
&lt;pre&gt;
some text
&lt;/pre&gt;
becomes
&lt;pre&gt;
\tsome text

&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>Let me try to print the code again:</p>
<pre>

</pre>
<p>becomes</p>
<pre>

</pre>
<p>and</p>
<pre>
some text
</pre>
<p>becomes</p>
<pre>
\tsome text

</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en Pretty printing xhtml with nokogiri and xslt por lance pollard</title>
		<link>http://emmanueloga.wordpress.com/2009/09/29/pretty-printing-xhtml-with-nokogiri-and-xslt/#comment-305</link>
		<dc:creator><![CDATA[lance pollard]]></dc:creator>
		<pubDate>Mon, 12 Apr 2010 07:02:26 +0000</pubDate>
		<guid isPermaLink="false">http://emmanueloga.wordpress.com/?p=223#comment-305</guid>
		<description><![CDATA[Hey man this is great, saved me a lot of time!

One (two) issues though, maybe you know a fix...

1) If the node is empty, it converts it into a self closing node.  This is a problem for HTML:

so &lt;code&gt;&lt;/code&gt;
becomes &lt;code&gt;&lt;/code&gt;

2) If the node has text, the closing tag is not indented:

so &lt;code&gt;Some Text&lt;/code&gt;
becomes:
&lt;code&gt;
\tSome Text

&lt;/code&gt;

(Hope the formatting worked out).  Notice the first label tag has a &quot;\t&quot; before it, but the text and following closing tag aren&#039;t properly indented.

Any quick fixes for this?]]></description>
		<content:encoded><![CDATA[<p>Hey man this is great, saved me a lot of time!</p>
<p>One (two) issues though, maybe you know a fix&#8230;</p>
<p>1) If the node is empty, it converts it into a self closing node.  This is a problem for HTML:</p>
<p>so <code></code><br />
becomes <code></code></p>
<p>2) If the node has text, the closing tag is not indented:</p>
<p>so <code>Some Text</code><br />
becomes:<br />
<code><br />
\tSome Text</p>
<p></code></p>
<p>(Hope the formatting worked out).  Notice the first label tag has a &#8220;\t&#8221; before it, but the text and following closing tag aren&#8217;t properly indented.</p>
<p>Any quick fixes for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en Tablas en rails por head777</title>
		<link>http://emmanueloga.wordpress.com/2007/09/20/tablas-en-rails/#comment-304</link>
		<dc:creator><![CDATA[head777]]></dc:creator>
		<pubDate>Sat, 27 Mar 2010 02:52:26 +0000</pubDate>
		<guid isPermaLink="false">http://emmanueloga.wordpress.com/2007/09/20/tablas-en-rails/#comment-304</guid>
		<description><![CDATA[Hola, te estoy muy agradecido por que ya aprendi que en casos como estos es mejor hacer un   &quot;has_and_belongs_to_many&quot;  o tambien se puede hacer por medio del &quot;through&quot; por que por medio de esto generamos una asociasion rapida y sin tanto problema.

Solo que ahora nada mas una consulta, que no me contestaste la vez pasada xD, ahora que ya se como relacionar tablas many a many. Lo que necesito saber es como llamar los modelos y los controles cuando los cree en la consola, ya que he no se si es lo mas recomendado crear modelos y controles asi: &quot;detalle_pedido&quot; por que primero son dos nombres y segundo lleva guion.

Que opinas??]]></description>
		<content:encoded><![CDATA[<p>Hola, te estoy muy agradecido por que ya aprendi que en casos como estos es mejor hacer un   &#8220;has_and_belongs_to_many&#8221;  o tambien se puede hacer por medio del &#8220;through&#8221; por que por medio de esto generamos una asociasion rapida y sin tanto problema.</p>
<p>Solo que ahora nada mas una consulta, que no me contestaste la vez pasada xD, ahora que ya se como relacionar tablas many a many. Lo que necesito saber es como llamar los modelos y los controles cuando los cree en la consola, ya que he no se si es lo mas recomendado crear modelos y controles asi: &#8220;detalle_pedido&#8221; por que primero son dos nombres y segundo lleva guion.</p>
<p>Que opinas??</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en Tablas en rails por emmanueloga</title>
		<link>http://emmanueloga.wordpress.com/2007/09/20/tablas-en-rails/#comment-303</link>
		<dc:creator><![CDATA[emmanueloga]]></dc:creator>
		<pubDate>Sat, 27 Mar 2010 00:06:02 +0000</pubDate>
		<guid isPermaLink="false">http://emmanueloga.wordpress.com/2007/09/20/tablas-en-rails/#comment-303</guid>
		<description><![CDATA[Te paso algunos links, este lista esta buena para hacer preguntas en español:
http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar

Las guías de rails, están en ingles pero son barbaras:
http://guides.rubyonrails.org/association_basics.html#choosing-between-has-many-through-and-has-and-belongs-to-many

La documentación de rails, lo que estas necesitando es una relación &quot;many to many&quot;.
Esto se logra sin join model mediante el método &quot;has_and_belongs_to_many&quot; o con join model mediante el método  &quot;has_many :trough&quot; . 
http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#M001833

Join model quiere decir que vas a tener una clase para representar la tabla que relaciona ambos modelos, en tu caso sería DetallePedido. 
Te recomiendo que trates de poner todo en inglés, es más claro si tu código esta en un solo idioma.

&lt;code&gt;
class Order
  set_table_name &quot;pedido&quot;
  has_many :order_details
  has_many :products, :through =&gt; :order_details
end
class Product
  set_table_name &quot;producto&quot;
  has_many :order_details
  has_many :orders, :through =&gt; :order_details
end
class OrderDetail &lt; ActiveRecord::Base
  belongs_to :order
  belongs_to :product
end

# Ahora tendrías que poder hacer cosas como:
Order.first.products
Product.first.orders
OrderDetail.all.each do &#124;od&#124;
  puts &quot;#{ od.order } has #{ od.products.count } products&quot;
end
# etc....
&lt;/code&gt;

Como tu tabla parece legacy, seguro vas a tener que configurar los nombres de las claves en los belongs_tos y has_manys.
Investiga bien la documentación de opciones como :foreign_key, :association_foreign_key.

Cualquier duda no dudes en preguntar en la lista que te pasé más arriba!

Saludos.]]></description>
		<content:encoded><![CDATA[<p>Te paso algunos links, este lista esta buena para hacer preguntas en español:<br />
<a href="http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar" rel="nofollow">http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar</a></p>
<p>Las guías de rails, están en ingles pero son barbaras:<br />
<a href="http://guides.rubyonrails.org/association_basics.html#choosing-between-has-many-through-and-has-and-belongs-to-many" rel="nofollow">http://guides.rubyonrails.org/association_basics.html#choosing-between-has-many-through-and-has-and-belongs-to-many</a></p>
<p>La documentación de rails, lo que estas necesitando es una relación &#8220;many to many&#8221;.<br />
Esto se logra sin join model mediante el método &#8220;has_and_belongs_to_many&#8221; o con join model mediante el método  &#8220;has_many :trough&#8221; .<br />
<a href="http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#M001833" rel="nofollow">http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#M001833</a></p>
<p>Join model quiere decir que vas a tener una clase para representar la tabla que relaciona ambos modelos, en tu caso sería DetallePedido.<br />
Te recomiendo que trates de poner todo en inglés, es más claro si tu código esta en un solo idioma.</p>
<p><code><br />
class Order<br />
  set_table_name "pedido"<br />
  has_many <img src='http://s1.wp.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> rder_details<br />
  has_many :products, :through =&gt; <img src='http://s1.wp.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> rder_details<br />
end<br />
class Product<br />
  set_table_name "producto"<br />
  has_many <img src='http://s1.wp.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> rder_details<br />
  has_many <img src='http://s1.wp.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> rders, :through =&gt; <img src='http://s1.wp.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> rder_details<br />
end<br />
class OrderDetail &lt; ActiveRecord::Base<br />
  belongs_to <img src='http://s1.wp.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> rder<br />
  belongs_to :product<br />
end</p>
<p># Ahora tendrías que poder hacer cosas como:<br />
Order.first.products<br />
Product.first.orders<br />
OrderDetail.all.each do |od|<br />
  puts &quot;#{ od.order } has #{ od.products.count } products&quot;<br />
end<br />
# etc....<br />
</code></p>
<p>Como tu tabla parece legacy, seguro vas a tener que configurar los nombres de las claves en los belongs_tos y has_manys.<br />
Investiga bien la documentación de opciones como :foreign_key, :association_foreign_key.</p>
<p>Cualquier duda no dudes en preguntar en la lista que te pasé más arriba!</p>
<p>Saludos.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en Tablas en rails por head777</title>
		<link>http://emmanueloga.wordpress.com/2007/09/20/tablas-en-rails/#comment-302</link>
		<dc:creator><![CDATA[head777]]></dc:creator>
		<pubDate>Fri, 26 Mar 2010 21:29:33 +0000</pubDate>
		<guid isPermaLink="false">http://emmanueloga.wordpress.com/2007/09/20/tablas-en-rails/#comment-302</guid>
		<description><![CDATA[Hola, que tal acabo de leer tu manual y me parece muy entendible ya que estoy empezando en el mundo de rails.

Pero me gustaria preguntarte un par de cosas, ya que no entiendo muy bien como manejar tablas intermedias.

Ejemplo: imagina que tienes una base de datos ya montada y funcionando y en ella tienes estas tres tablas:

pedido
producto 
y una intermedia detalle_pedido en la que esta pedido_id, producto_id para hacer la ruptura de este tipo de relaciones

Entonces en este caso, como la manejas es decir a la hora de crear los modelos creas el modelo asi:

script/generate model detalle_pedido ???

Tengo problemas para manejar este tipo de tablas, ya que no se si es correcto crear modelos y controles con nombres asi: &quot; detalle_pedido&quot; me refiero por que son dos nombres y aparte lleva el guion  o quiza seria mejor crear los dos en esta manera  &quot;detalle&quot; y de igual forma el modelo aunque despues dentro de el le especifique que tipo tabla usara con el set_name_table ??

Que opinas ando un poco perdido nada mas con este tipo de tablas, ya que no se haya en internet ningun tipo de esta y soy algo nuevo.

Bueno espero me puedas ayudar, desde ya gracias!!]]></description>
		<content:encoded><![CDATA[<p>Hola, que tal acabo de leer tu manual y me parece muy entendible ya que estoy empezando en el mundo de rails.</p>
<p>Pero me gustaria preguntarte un par de cosas, ya que no entiendo muy bien como manejar tablas intermedias.</p>
<p>Ejemplo: imagina que tienes una base de datos ya montada y funcionando y en ella tienes estas tres tablas:</p>
<p>pedido<br />
producto<br />
y una intermedia detalle_pedido en la que esta pedido_id, producto_id para hacer la ruptura de este tipo de relaciones</p>
<p>Entonces en este caso, como la manejas es decir a la hora de crear los modelos creas el modelo asi:</p>
<p>script/generate model detalle_pedido ???</p>
<p>Tengo problemas para manejar este tipo de tablas, ya que no se si es correcto crear modelos y controles con nombres asi: &#8221; detalle_pedido&#8221; me refiero por que son dos nombres y aparte lleva el guion  o quiza seria mejor crear los dos en esta manera  &#8220;detalle&#8221; y de igual forma el modelo aunque despues dentro de el le especifique que tipo tabla usara con el set_name_table ??</p>
<p>Que opinas ando un poco perdido nada mas con este tipo de tablas, ya que no se haya en internet ningun tipo de esta y soy algo nuevo.</p>
<p>Bueno espero me puedas ayudar, desde ya gracias!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en Liquid Coolness por Web Development &#187; Liquid Refreshment</title>
		<link>http://emmanueloga.wordpress.com/2008/07/26/liquid-coolness/#comment-299</link>
		<dc:creator><![CDATA[Web Development &#187; Liquid Refreshment]]></dc:creator>
		<pubDate>Thu, 25 Feb 2010 10:16:28 +0000</pubDate>
		<guid isPermaLink="false">http://emmanueloga.wordpress.com/?p=57#comment-299</guid>
		<description><![CDATA[[...] So my first task was to try and dig up as much information about Liquid as I could find. As is so often the case with these cutting-edge technologies, there isn&#8217;t much out there. The Liquid developers&#8217; wiki was useful, but not exactly comprehensive. I was also able to find a few blog posts about it, for example this one about custom tags, and this overview of Liquid&#8217;s features. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] So my first task was to try and dig up as much information about Liquid as I could find. As is so often the case with these cutting-edge technologies, there isn&#8217;t much out there. The Liquid developers&#8217; wiki was useful, but not exactly comprehensive. I was also able to find a few blog posts about it, for example this one about custom tags, and this overview of Liquid&#8217;s features. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en Slow Netbeans? Some tips I tried por Pramod Nepal &#187; Netbeans is slow (remedy)</title>
		<link>http://emmanueloga.wordpress.com/2008/03/20/faster-netbeans-yes-it-is-posible/#comment-298</link>
		<dc:creator><![CDATA[Pramod Nepal &#187; Netbeans is slow (remedy)]]></dc:creator>
		<pubDate>Tue, 12 Jan 2010 04:11:15 +0000</pubDate>
		<guid isPermaLink="false">http://emmanueloga.wordpress.com/?p=50#comment-298</guid>
		<description><![CDATA[[...] a. http://emmanueloga.wordpress.com/2008/03/20/faster-netbeans-yes-it-is-posible/ [...]]]></description>
		<content:encoded><![CDATA[<p>[...] a. <a href="http://emmanueloga.wordpress.com/2008/03/20/faster-netbeans-yes-it-is-posible/" rel="nofollow">http://emmanueloga.wordpress.com/2008/03/20/faster-netbeans-yes-it-is-posible/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en Pretty printing xhtml with nokogiri and xslt por emmanueloga</title>
		<link>http://emmanueloga.wordpress.com/2009/09/29/pretty-printing-xhtml-with-nokogiri-and-xslt/#comment-293</link>
		<dc:creator><![CDATA[emmanueloga]]></dc:creator>
		<pubDate>Sat, 19 Dec 2009 02:14:28 +0000</pubDate>
		<guid isPermaLink="false">http://emmanueloga.wordpress.com/?p=223#comment-293</guid>
		<description><![CDATA[Hey, thanks for the comment. Fixed!]]></description>
		<content:encoded><![CDATA[<p>Hey, thanks for the comment. Fixed!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en Pretty printing xhtml with nokogiri and xslt por Aaron Blohowiak</title>
		<link>http://emmanueloga.wordpress.com/2009/09/29/pretty-printing-xhtml-with-nokogiri-and-xslt/#comment-292</link>
		<dc:creator><![CDATA[Aaron Blohowiak]]></dc:creator>
		<pubDate>Thu, 10 Dec 2009 18:00:43 +0000</pubDate>
		<guid isPermaLink="false">http://emmanueloga.wordpress.com/?p=223#comment-292</guid>
		<description><![CDATA[Hey, thanks for the tip. In your example, you have Nokogiri::XSLT(&quot;pretty_print.xsl&quot;), you need to pass the contents of the file, not the filename.. so it should be Nokogiri::XSLT(File.read(&quot;pretty_print.xsl&quot;))]]></description>
		<content:encoded><![CDATA[<p>Hey, thanks for the tip. In your example, you have Nokogiri::XSLT(&#8220;pretty_print.xsl&#8221;), you need to pass the contents of the file, not the filename.. so it should be Nokogiri::XSLT(File.read(&#8220;pretty_print.xsl&#8221;))</p>
]]></content:encoded>
	</item>
</channel>
</rss>