<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Enrique Delgado Monroy: Category Rails</title>
    <link>http://www.enriquedelgado.com/articles/category/rails</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Work, Life, Stuff</description>
    <item>
      <title>RailsConf 2007 Keynote: A peek at Rails 2.0</title>
      <description>&lt;p&gt;RailsConf 2007 is well underway now. After a day of tutorials, we were welcomed by Chad Fowler, writer and fellow Pragmtic Studio Alumni. Chad had some cool things to say to the community, namely that we have an opportunity to have a good impact and he encouraged us and everyone to raise money for charity as a Rails community. Go to &lt;a href="http://pragmaticstudio.com/donate"&gt;http://pragmaticstudio.com/donate&lt;/a&gt; to make your donation.&lt;/p&gt;


	&lt;p&gt;David Heinemeier Hansson kicked-off the conference with his keynote speech &amp;#8220;A peek at Rails 2.0&amp;#8221;. David spoke about some of the upcoming features in 2.0, but specifically said that 2.0 is not going to be a &amp;#8220;magic unicorn&amp;#8221;. I.e. not a re-write, but more like a progression of sorts; real and humble. I&amp;#8217;m sure the screencast will g up soon at the &lt;a href="http://www.rubyonrails.com"&gt;rails site&lt;/a&gt; site.&lt;/p&gt;


	&lt;h3&gt;Some of the features are:&lt;/h3&gt;


	&lt;ol&gt;
	&lt;li&gt;namespaces in routes.&lt;/li&gt;
		&lt;li&gt;Default scaffold, will have a complete xml backend. &lt;/li&gt;
		&lt;li&gt;scaffold_resource will be just scaffold and it will be RESTful &lt;/li&gt;
		&lt;li&gt;Easy to connect to a &lt;span class="caps"&gt;REST&lt;/span&gt; interface, even with an isolated simple ruby file. &amp;#8220;This stuff works now&amp;#8221;. Active Web Service no longer bundled with 2.0, just Active Resource. &amp;#8220;The answer is not &lt;span class="caps"&gt;SOAP&lt;/span&gt;, it&amp;#8217;s active resource&amp;#8221; &lt;/li&gt;
		&lt;li&gt;Breakpoints are back. Rails-debugger.&lt;/li&gt;
		&lt;li&gt;Debugger&lt;/li&gt;
		&lt;li&gt;&lt;span class="caps"&gt;HTTP&lt;/span&gt; performance though JS and &lt;span class="caps"&gt;CSS&lt;/span&gt; cache to make the browser make fewer connections also, asset hosts. Query cache. &lt;/li&gt;
		&lt;li&gt;Sexy migrations &lt;/li&gt;
		&lt;li&gt;The &lt;span class="caps"&gt;MIT&lt;/span&gt; license assumption. &lt;/li&gt;
		&lt;li&gt;Spring cleaning (all those deprecation warnings will become a reality)&lt;/li&gt;
	&lt;/ol&gt;


	&lt;p&gt;More soon!&lt;/p&gt;</description>
      <pubDate>Fri, 18 May 2007 17:03:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:0582a014-5155-4421-9021-f5cfa94a80a3</guid>
      <author>Enrique Delgado</author>
      <link>http://www.enriquedelgado.com/articles/2007/05/18/railsconf-2007-keynote-a-peek-at-rails-2-0</link>
      <category>Rails</category>
      <category>RailsConf2007</category>
    </item>
    <item>
      <title>Gearing up for RailsConf 2007 in Portland!</title>
      <description>&lt;p&gt;With only three days to go, I&amp;#8217;ve been busy getting everything in place for my trip to Portland.&lt;/p&gt;


	&lt;p&gt;I spent some time reading through all the descriptions and presenter bios for each of the sessions in the conference. I&amp;#8217;m excited to hear from some big names like &lt;a href="http://danwebb.net"&gt;Dan Webb&lt;/a&gt;, &lt;a href="http://topfunky.com"&gt;Geoffrey Grosenbach&lt;/a&gt;, &lt;a href="http://slash7.com"&gt;Amy Hoy&lt;/a&gt; amongst others.&lt;/p&gt;


	&lt;p&gt;A buddy of mine pointed me to this &lt;a href="http://myconfplan.com/conferences/RailsConf2007"&gt;conference-planning site&lt;/a&gt;. It&amp;#8217;s pretty cool; &lt;a href="http://myconfplan.com/conferences/RailsConf2007/users/enriquedelgado"&gt;this is my preliminary plan&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;Keep an eye on my &lt;a href="http://www.flickr.com/photos/38934033@N00/"&gt;Flickr photostream&lt;/a&gt; for pictures of the conference :)&lt;/p&gt;</description>
      <pubDate>Sun, 13 May 2007 12:30:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:41db40f1-b66a-4514-b139-7f7fd5bc327d</guid>
      <author>Enrique Delgado</author>
      <link>http://www.enriquedelgado.com/articles/2007/05/13/gearing-up-for-railsconf-2007-in-portland</link>
      <category>Rails</category>
      <category>Ruby</category>
      <category>Travel</category>
      <category>RailsConf2007</category>
    </item>
    <item>
      <title>SliceHost + Deprec Plug-in</title>
      <description>&lt;p&gt;I&amp;#8217;ve recently purchased a slice at &lt;a href="http://www.slicehost.com"&gt;SliceHost&lt;/a&gt; and started to use the Deprec plug-in for Rails for my apps.&lt;/p&gt;


	&lt;p&gt;Thanks to the awesome Top Funky free &lt;a href="http://peepcode.com/"&gt;peepcode screencast&lt;/a&gt; I was able to start deploying applications (including the entire Rails stack) quickly and in a predictable manner.&lt;/p&gt;


	&lt;p&gt;Check out the &lt;a href="http://topfunky.com/clients/peepcode/free-episodes/peepcode-free-deprec.mov"&gt;screencast&lt;/a&gt;  for details, but this is my basic recipe to setup a new application. These steps will create a sample rails application, setup apache, mongrel, and deploy (with migrations!):&lt;/p&gt;


	&lt;ol&gt;
	&lt;li&gt;&lt;code&gt;rails mykillerapp&lt;/code&gt;&lt;/li&gt;
		&lt;li&gt;&lt;code&gt;deprec --apply-to .&lt;/code&gt;&lt;/li&gt;
		&lt;li&gt;Edit your &lt;code&gt;config/deploy.rb&lt;/code&gt; file.&lt;/li&gt;
		&lt;li&gt;&lt;code&gt;cap deprec_setup&lt;/code&gt;&lt;/li&gt;
		&lt;li&gt;&lt;code&gt;cap setup_scm&lt;/code&gt;&lt;/li&gt;
		&lt;li&gt;&lt;code&gt;cap deploy_with migrations&lt;/code&gt;&lt;/li&gt;
		&lt;li&gt;&lt;code&gt;cap restart_apache&lt;/code&gt;&lt;/li&gt;
	&lt;/ol&gt;


	&lt;p&gt;And you are done! Subsequent releases are even easier:&lt;/p&gt;


	&lt;ol&gt;
	&lt;li&gt;&lt;code&gt;cap deploy_with_migrations&lt;/code&gt;&lt;/li&gt;
	&lt;/ol&gt;


	&lt;p&gt;Pretty good eh?&lt;/p&gt;</description>
      <pubDate>Tue, 01 May 2007 10:00:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:545c47d9-cfb4-4791-99f6-bffa7dbd6293</guid>
      <author>Enrique Delgado</author>
      <link>http://www.enriquedelgado.com/articles/2007/05/01/slicehost-deprec-plug-in</link>
      <category>Rails</category>
      <category>rails</category>
      <category>plugins</category>
      <category>capistrano</category>
      <category>deployment</category>
      <category>deprec</category>
    </item>
    <item>
      <title>Interactive Ruby Console Tip: Remember the last X commands</title>
      <description>&lt;p&gt;This is an excellent tip by &lt;a href="http://www.clarkware.com"&gt;Mike Clark&lt;/a&gt; to make &lt;span class="caps"&gt;IRB&lt;/span&gt; remember the last X number of commands even after you exit and restart &lt;span class="caps"&gt;IRB&lt;/span&gt;.&lt;/p&gt;


	&lt;p&gt;This is great when developing and after modifying a model, you don&amp;#8217;t have to re-type everyting once again :)&lt;/p&gt;


	&lt;blockquote&gt;
		&lt;p&gt;&amp;#8220;Simply add the code below to your ~/.irbrc file. Then you can use up-arrow to cycle through the history, even
after restarting &lt;span class="caps"&gt;IRB&lt;/span&gt;. It relies on the built-in history of readline, so you&amp;#8217;ll need readline installed. The code below also enables completion using the &lt;span class="caps"&gt;TAB&lt;/span&gt; key&amp;#8221;&lt;/p&gt;
	&lt;/blockquote&gt;


&lt;pre style="overflow: auto; background: #EEE;"&gt;
IRB.conf[:PROMPT_MODE] = :SIMPLE

require 'irb/completion'

IRB.conf[:AUTO_INDENT] = true

# Session History

HISTFILE = "~/.irb.hist" unless defined? HISTFILE
MAXHISTSIZE = 100 unless defined? MAXHISTSIZE

begin
if defined? Readline::HISTORY
histfile = File::expand_path(HISTFILE)
if File::exists?(histfile)
lines = IO::readlines(histfile).collect { |line| line.chomp }
Readline::HISTORY.push(*lines)
end

Kernel::at_exit {
lines = Readline::HISTORY.to_a.reverse.uniq.reverse
lines = lines[-MAXHISTSIZE, MAXHISTSIZE] if lines.nitems &amp;gt;
MAXHISTSIZE
File::open(histfile, File::WRONLY|File::CREAT|File::TRUNC) {|f|
lines.each {|line| f.puts line }
}
}
end
end
&lt;/pre&gt;</description>
      <pubDate>Wed, 25 Apr 2007 10:47:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:9bc46352-8e4c-4521-9bc8-ae23b7ec3896</guid>
      <author>Enrique Delgado</author>
      <link>http://www.enriquedelgado.com/articles/2007/04/25/interactive-ruby-console-tip-remember-the-last-x-commands-even-after-logging-out</link>
      <category>Rails</category>
      <category>ruby</category>
      <category>irb</category>
      <category>tips</category>
    </item>
  </channel>
</rss>
