<?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>ronin: Category Rails</title>
    <link>http://blogs.divisibleprime.com/ronin/articles/category/rails</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Stuff</description>
    <item>
      <title>Internet Asshattery</title>
      <description>&lt;p&gt;&lt;a href="http://randomfoo.net/blog/id/4171"&gt;Leonard Lin&lt;/a&gt;: Internet Asshattery, Armchair Scaling Experts Edition&lt;/p&gt;</description>
      <pubDate>Sat, 26 Apr 2008 11:43:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:e3e2476e-d471-4d48-80e9-f9f1e93fdc91</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2008/04/26/internet-asshattery</link>
      <category>Rails</category>
      <category>Tech</category>
      <category>Ruby</category>
      <category>rails</category>
      <category>scaling</category>
      <category>twitter</category>
      <trackback:ping>http://blogs.divisibleprime.com/ronin/articles/trackback/943</trackback:ping>
    </item>
    <item>
      <title>Rails Scaffold, ActiveRecord, and table names</title>
      <description>&lt;p&gt;Looks like the Rails scaffolding doesn&amp;#8217;t like it when your model uses a different table name from the default mapping it expects(like when accessing a legacy database model).  &lt;/p&gt;

&lt;p&gt;So if you have a model like so:   &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;class Thing &amp;lt; ActiveRecord::Base
    set_table_name "some_thing"
end
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then ActiveRecord will be expecting a table called &amp;#8220;some_thing&amp;#8221;, however the scaffolding generator is expecting the default, which is going to be &amp;#8220;things&amp;#8221;(or something like that since I can&amp;#8217;t be bothered actually generating a model called Thing).&lt;/p&gt;

&lt;p&gt;When running your generator you&amp;#8217;re going to end up with an error like:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;error  Before updating scaffolding from new DB schema, try creating a table for your model (Thing)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Annoying as this is, you can work around it by temporarily creating the table required by the generator.  Then go ahead and drop it after the generator works.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;create table things ();
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I&amp;#8217;m not sure what longer term effects this causes, and if there is a better way then let me know.  &lt;/p&gt;</description>
      <pubDate>Mon, 21 May 2007 20:36:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:c938c10a-7670-48fd-9f76-3eb6b9cac682</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2007/05/21/rails-scaffold-activerecord-and-table-names</link>
      <category>Rails</category>
      <category>Tech</category>
      <category>Ruby</category>
      <category>ruby</category>
      <category>rails</category>
      <category>activerecord</category>
      <trackback:ping>http://blogs.divisibleprime.com/ronin/articles/trackback/870</trackback:ping>
    </item>
    <item>
      <title>Scaling Twitter</title>
      <description>&lt;p&gt;&lt;a href="http://blog.blainebuxton.com/"&gt;Blaine Buxton&amp;#8217;s&lt;/a&gt; &lt;a href="http://www.slideshare.net/Blaine/scaling-twitter/"&gt;slides&lt;/a&gt; on scaling twitter.&lt;/p&gt;</description>
      <pubDate>Sun, 06 May 2007 18:49:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:7349a046-473e-42c9-b707-6eb92a8b1ef8</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2007/05/06/scaling-twitter</link>
      <category>Rails</category>
      <category>Tech</category>
      <category>Ruby</category>
      <category>ruby</category>
      <category>rails</category>
      <category>scaling</category>
      <category>twitter</category>
      <trackback:ping>http://blogs.divisibleprime.com/ronin/articles/trackback/862</trackback:ping>
    </item>
    <item>
      <title>Seaside and Rails</title>
      <description>&lt;p&gt;&lt;a href="http://griddlenoise.blogspot.com/2006/03/seaside-rails-helpers-formlib-helping.html"&gt;James Shell&lt;/a&gt;:   Seaside, Rails, Helpers&amp;#8230;&lt;/p&gt;

&lt;blockquote&gt;
    &lt;p&gt;It&#8217;s not XML, YAML, An Array or list. It doesn&#8217;t get translated into any structure like that.&lt;/p&gt;
&lt;/blockquote&gt;</description>
      <pubDate>Mon, 05 Mar 2007 22:00:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:1bc09279-c092-45b9-a097-c5c6ecb2616a</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2007/03/05/seaside-and-rails</link>
      <category>Rails</category>
      <category>Tech</category>
      <category>Smalltalk</category>
      <category>Ruby</category>
      <category>smalltalk</category>
      <category>ruby</category>
      <category>rails</category>
      <category>seaside</category>
      <trackback:ping>http://blogs.divisibleprime.com/ronin/articles/trackback/806</trackback:ping>
    </item>
    <item>
      <title>Rack</title>
      <description>&lt;p&gt;&lt;a href="http://rack.rubyforge.org/"&gt;Rack&lt;/a&gt; provides an minimal interface between webservers supporting Ruby and Ruby frameworks.&lt;/p&gt;</description>
      <pubDate>Sun, 04 Mar 2007 22:25:37 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:4ce5e04e-25e0-41fc-85fc-c14a1dfc23ff</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2007/03/04/rack</link>
      <category>Rails</category>
      <category>Tech</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>A Rails Debugger</title>
      <description>&lt;p&gt;&lt;a href="http://gyre.bitscribe.net/"&gt;Gyre&lt;/a&gt;: simple, fast, cross-platform, web-centric, open source, and written in Ruby.&lt;/p&gt;

&lt;p&gt;Good idea, hope it works out.&lt;/p&gt;</description>
      <pubDate>Sun, 04 Feb 2007 11:14:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:b2d8a4f5-ecb1-4da1-a3de-64dac2df1d16</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2007/02/04/a-rails-debugger</link>
      <category>Rails</category>
      <category>Tech</category>
      <category>Ruby</category>
      <category>ruby</category>
      <category>rails</category>
      <trackback:ping>http://blogs.divisibleprime.com/ronin/articles/trackback/797</trackback:ping>
    </item>
    <item>
      <title>Smalltalk failed because of Smalltalk?</title>
      <description>&lt;p&gt;&lt;a href="http://jroller.com/page/obie?entry=live_from_jaoo_future_of"&gt;Obie Fernandez&lt;/a&gt; blogs about the &amp;#8220;What makes Ruby roll&amp;#8221; session at JAOO.&lt;/p&gt;

&lt;p&gt;One of the questions the panel was asked was &amp;#8220;How can Ruby avoid the same fate as Smalltalk?&amp;#8221;.  My favourite answer has to be from Kevin Henney(I&amp;#8217;m assuming the quote is accurate): &lt;/p&gt;

&lt;blockquote&gt;
    &lt;p&gt;Someone will have rewritten it by then. Yes, will succeed where Smalltalk failed because it&amp;#8217;s not bound up in the smalltalk environment (you can open up Ruby files in Notepad). Also, do not underestimate how important a &amp;#8216;normal&amp;#8217; if statement is. The biggest problem with Smalltalk is Smalltalkers.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If I can paraphrase: &amp;#8220;The problem with smalltalk is smalltalk and the people who use it&amp;#8221;.&lt;/p&gt;

&lt;p&gt;Makes me laugh, probably becuase it&amp;#8217;s true, but you get arrogant people in all communities, Ruby will probably end up with a few since it&amp;#8217;s so popular currently.&lt;/p&gt;

&lt;p&gt;Blain Buxton &lt;a href="http://blog.blainebuxton.com/2006/10/what-makes-ruby-roll.html"&gt;follows up&lt;/a&gt; saying: &amp;#8220;An image-less Smalltalk would have a nicer entry point&amp;#8230;&amp;#8221;.&lt;/p&gt;

&lt;p&gt;I think this is very true.  I seem to remember something called &lt;a href="http://www.smallscript.net/"&gt;Smallscript&lt;/a&gt; that didn&amp;#8217;t require an Image, and I&amp;#8217;m sure there must be a few more kicking about.&lt;/p&gt;

&lt;p&gt;In the end I guess it matters what the Ruby community wants to achieve.  Ruby and RoR certainly has a massive mindshare at the moment but who really knows where it&amp;#8217;s going to go.  Is the goal to become some kind of enterprisey language that corporates feel comfortable deploying?  And if so how would the Ruby community even make that happen, I don&amp;#8217;t think any amount of endless evangilism about how good Ruby is will do any good, IMO it&amp;#8217;s going to take some serious backing by a large technology company before it can start to make those inroads into the Enterprise world.  And if it does, then it needs to play nice with Java, C#, and whatever else is being used , it can&amp;#8217;t be an island.&lt;/p&gt;

&lt;p&gt;If you keep reading Obie&amp;#8217;s post there are a couple &lt;a href="http://jroller.com/page/obie?entry=live_from_jaoo_future_of#comment5"&gt;funny&lt;/a&gt; &lt;a href="http://jroller.com/page/obie?entry=live_from_jaoo_future_of#comment6"&gt;posts&lt;/a&gt; which are worth reading for the hell of it.&lt;/p&gt;</description>
      <pubDate>Mon, 09 Oct 2006 17:32:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:37699b13-d739-4331-89b2-b76d66737915</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2006/10/09/smalltalk-failed-because-of-smalltalk</link>
      <category>Rails</category>
      <category>Tech</category>
      <category>Java</category>
      <category>Smalltalk</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>Ruby IDE</title>
      <description>&lt;p&gt;Looks like &lt;a href="http://tbray.org/ongoing"&gt;Tim Bray&lt;/a&gt; has &lt;a href="http://www.tbray.org/ongoing/When/200x/2006/09/05/What-Ruby-Needs"&gt;wrapped up&lt;/a&gt; the &lt;a href="http://www.tbray.org/ongoing/When/200x/2006/08/17/JRuby"&gt;Ruby Ape Diaries&lt;/a&gt;.  In that latest post he points out a few things Ruby needs, one of which is an IDE.&lt;/p&gt;

&lt;p&gt;I&amp;#8217;m using the &lt;a href="http://rubyeclipse.sourceforge.net/"&gt;RDT&lt;/a&gt; eclipse plugin.  It is pretty good, as good as I&amp;#8217;ve found anyway.  It does have syntax highlighting, content assist, an outline for Class navigation, and a Unit Test launcher which uses the same unit test runner as the JDT(java development tools).  As far as I know it doesn&amp;#8217;t have any refactoring support.&lt;/p&gt;

&lt;p&gt;And, IIRC, it&amp;#8217;s built on JRuby.  &lt;/p&gt;

&lt;p&gt;There is an introductory &lt;a href="http://www-128.ibm.com/developerworks/opensource/library/os-rubyeclipse/"&gt;article&lt;/a&gt; to the tool at IBM developer works.&lt;/p&gt;

&lt;p&gt;There is also a Rails plugin, &lt;a href="http://www.radrails.org/"&gt;Rad Rails&lt;/a&gt;, which I know absolutely nothing about.&lt;/p&gt;</description>
      <pubDate>Wed, 06 Sep 2006 10:34:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:0885c3ad-6459-49f7-8deb-d90aed86fe0f</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2006/09/06/ruby-ide</link>
      <category>Rails</category>
      <category>Tech</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>Active Record Rules</title>
      <description>&lt;p&gt;Here is how much code it takes to get &lt;a href="http://wiki.rubyonrails.com/rails/pages/ActiveRecord"&gt;ActiveRecord&lt;/a&gt; working.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;  require 'active_record/base'

  ActiveRecord::Base.establish_connection(
    :adapter  =&amp;gt; "postgresql",
    :host     =&amp;gt; "blah",
    :username =&amp;gt; "blah",
    :password =&amp;gt; "blah",
    :database =&amp;gt; "database"
  )

  class User &amp;lt; ActiveRecord::Base
  end

  puts User.find(:first).id
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;It&amp;#8217;s very cool.  I&amp;#8217;m sure there&amp;#8217;s probably plenty of stuff &lt;a href="http://www.hibernate.org"&gt;Hibernate&lt;/a&gt; can do that ActiveRecord cannot, but you can&amp;#8217;t beat it for just getting stuff done, without arsing about with config files.&lt;/p&gt;</description>
      <pubDate>Tue, 23 May 2006 18:02:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:6b170359-afd7-482b-88ae-15b04edfcaba</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2006/05/23/active-record-rules</link>
      <category>Rails</category>
      <category>Tech</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>What's new in Rails 1.1</title>
      <description>&lt;p&gt;&lt;a href="http://scottraymond.net"&gt;Scott Raymond&lt;/a&gt; lays it all out&amp;#8230;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://scottraymond.net/articles/2006/02/28/rails-1.1"&gt;Rails 1.1&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 03 Mar 2006 09:56:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:08b05b3f-9e64-471f-a92c-db3a9aec9352</guid>
      <author>gollo</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2006/03/03/whats-new-in-rails-1-1</link>
      <category>Rails</category>
      <category>Ruby</category>
    </item>
  </channel>
</rss>
