<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - rails - Comments</title>
 <link>http://community.activestate.com/tags/rails</link>
 <description>Comments for &quot;rails&quot;</description>
 <language>en</language>
<item>
 <title>Mainly because I develop on</title>
 <link>http://community.activestate.com/screencast-rails-tutorial-1#comment-4739</link>
 <description>&lt;p&gt;Mainly because I develop on many different machines.&lt;/p&gt;
</description>
 <pubDate>Thu, 20 Mar 2008 17:19:32 -0700</pubDate>
 <dc:creator>webPragmatist</dc:creator>
 <guid isPermaLink="false">comment 4739 at http://community.activestate.com</guid>
</item>
<item>
 <title>The PythonRemoteDebugging package is only for Python</title>
 <link>http://community.activestate.com/screencast-rails-tutorial-1#comment-4734</link>
 <description>&lt;p&gt;For Ruby debugging, you only need these files:&lt;/p&gt;
&lt;pre class=&quot;geshifilter&quot;&gt;[komodo-install-dir]/.../support/dbgp/rubylib
  rdbgp.rb
  rdbgp/
  1.8/ *** Optional -- should be installed with &#039;gem install ruby-debug-base&#039;&lt;/pre&gt;&lt;p&gt;
Since you copied the above directory from a Windows machine to a Linux one,&lt;br /&gt;
you can&#039;t use the binary libraries in the 1.8/ directory -- they were&lt;br /&gt;
built for Windows only.  Please delete the whole 1.8 directory on your Linux machine.&lt;/p&gt;
&lt;p&gt;Then follow the instructions in&lt;br /&gt;
[Help|Debugging|Debugging Ruby|Debugging Ruby Remotely]&lt;/p&gt;
&lt;p&gt;Generating Ruby projects remotely is way beyond the scope of the tutorial and screencasts I&#039;ve done.  Why not build and develop them locally, and deploy remotely?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
Eric&lt;/p&gt;
</description>
 <pubDate>Thu, 20 Mar 2008 12:14:30 -0700</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 4734 at http://community.activestate.com</guid>
</item>
<item>
 <title>Ok.. I am somewhat understanding this :)</title>
 <link>http://community.activestate.com/screencast-rails-tutorial-1#comment-4725</link>
 <description>&lt;p&gt;Here&#039;s what I have done (I hope this helps others):&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Copied the dbgp folder from C:\Program Files\ActiveState Komodo IDE 4\lib\support\dbgp to my Linux home directory ~/Komodo/dbgp/&lt;/li&gt;
&lt;li&gt;Downloaded the Komodo-PythonRemoteDebugging package and overwrote ~/Komodo/dbgp/bin and ~/Komodo/dbgp from that package (it also put some files in ~/Komodo/)&lt;/li&gt;
&lt;li&gt;Made sure port 9000 was set in Preferences&amp;gt;Debugger&amp;gt;Connection&lt;/li&gt;
&lt;li&gt;Ran &lt;code class=&quot;geshifilter&quot;&gt;export RUBYDB_OPTS=remoteport=my.domain.com:9000&lt;/code&gt; in my rails application folder&lt;/li&gt;
&lt;li&gt;Ran &lt;code class=&quot;geshifilter&quot;&gt;ruby -I/home/username/komodo/dbgp/rubylib/ -r /home/username/komodo/dbgp/rubylib/rdbgp.rb script/server&lt;/code&gt; in my rails application folder&lt;/li&gt;
&lt;li&gt;Ran &lt;code class=&quot;geshifilter&quot;&gt;sudo gem install ruby-debug-base&lt;/code&gt; as per the below error message suggests&lt;/li&gt;
&lt;p&gt;I still get the error:&lt;/p&gt;
&lt;pre class=&quot;geshifilter&quot;&gt;Error: /home/username/komodo/dbgp/rubylib/1.8/ruby_debug.so: invalid ELF header - /home/username/komodo/dbgp/rubylib/1.8/ruby_debug.so

The Komodo ruby debugger couldn&#039;t load the ruby-debug-base component.
  This library ships with Komodo, but also can be installed by running `gem install ruby-debug-base&#039;&lt;/pre&gt;&lt;p&gt;
The documentation isn&#039;t really clear what to do with the Komodo-PythonRemoteDebugging package once you download it, so I guessed.&lt;/p&gt;
&lt;p&gt;Thanks for your help in advance. Oh, and you didn&#039;t say whether this would allow new ruby projects to be generated remotely (as the tutorial demonstrates) using rails .&lt;/p&gt;
</description>
 <pubDate>Thu, 20 Mar 2008 04:34:25 -0700</pubDate>
 <dc:creator>webPragmatist</dc:creator>
 <guid isPermaLink="false">comment 4725 at http://community.activestate.com</guid>
</item>
<item>
 <title>Remote rails debugging in a nutshell</title>
 <link>http://community.activestate.com/screencast-rails-tutorial-1#comment-4703</link>
 <description>&lt;p&gt;This is untested, but here&#039;s how I would do it:&lt;/p&gt;
&lt;p&gt;Let&#039;s assume you&#039;re running Komodo on a Windows box called &quot;buckley.acme.com&quot;.&lt;br /&gt;
Go into Preferences|Debugger|Connection and have it listen on the&lt;br /&gt;
specific port 9000, or whatever port is handy.  Make sure&lt;br /&gt;
the menu item Debug|Listen for Debugging Connections is checked.&lt;/p&gt;
&lt;p&gt;On the Linux box, move to the directory containing the file rdbgp.rb,&lt;br /&gt;
the main Komodo Ruby debugger file.  Run this shell command:&lt;/p&gt;
&lt;pre class=&quot;geshifilter&quot;&gt;% rdbg=`pwd`&lt;/pre&gt;&lt;p&gt;
The only reason to do this is because that path is often very&lt;br /&gt;
long.  We need to type that path twice, in the next command,&lt;br /&gt;
so typing four characters going to be easier to read.  If you&#039;re&lt;br /&gt;
going to do this kind of debugging often you might as well give&lt;br /&gt;
the variable a more meaningful name and set it in your profile.&lt;/p&gt;
&lt;p&gt;Now move to the directory containing your Ruby script, and run&lt;br /&gt;
these commands:&lt;/p&gt;
&lt;pre class=&quot;geshifilter&quot;&gt;% export RUBYDB_OPTS=remoteport=buckley.acme.com:9000
% ruby -I$rdbg -r $rdbg/rdbgp.rb script/server webrick&lt;/pre&gt;&lt;p&gt;
That should do it.&lt;/p&gt;
</description>
 <pubDate>Tue, 18 Mar 2008 15:29:09 -0700</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 4703 at http://community.activestate.com</guid>
</item>
<item>
 <title>All of what is in the help</title>
 <link>http://community.activestate.com/screencast-rails-tutorial-1#comment-4700</link>
 <description>&lt;p&gt;All of what is in the help file is pretty much greek because it doesn&#039;t explain what exactly you are installing...&lt;/p&gt;
&lt;p&gt;So, I got to &quot;install Komodo-PythonRemoteDebugging&quot; and then thought, how in the world is it going to know how to connect to the server with SSH?&lt;/p&gt;
&lt;p&gt;Plus, all I am interested in right now is the scripts... does the debugger even do this (like how komodo will run &amp;gt; rails project_name &amp;lt;?&lt;/p&gt;
</description>
 <pubDate>Tue, 18 Mar 2008 14:48:59 -0700</pubDate>
 <dc:creator>webPragmatist</dc:creator>
 <guid isPermaLink="false">comment 4700 at http://community.activestate.com</guid>
</item>
<item>
 <title>I&#039;ve assumed Rails work is best done locally</title>
 <link>http://community.activestate.com/screencast-rails-tutorial-1#comment-4698</link>
 <description>&lt;p&gt;I&#039;m still learning about deployment, which is obviously done on a remote machine. I&#039;d rather run tests remotely than fire up the debugger.  You could use Komodo to remotely debug a remote Rails app, but you&#039;d have to configure the remote app first -- see &lt;/p&gt;
&lt;p&gt;Help|Debugging|Debugging Ruby|Debugging Ruby Remotely &lt;/p&gt;
&lt;p&gt;for an idea of how to go about this.&lt;/p&gt;
</description>
 <pubDate>Tue, 18 Mar 2008 13:24:13 -0700</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 4698 at http://community.activestate.com</guid>
</item>
<item>
 <title>Remote Development?</title>
 <link>http://community.activestate.com/screencast-rails-tutorial-1#comment-4697</link>
 <description>&lt;p&gt;Hey eric nice job on the video (am still watching),&lt;/p&gt;
&lt;p&gt;As I try to follow along I am curious to see how this would work with a remote environment (over SSH ideally so that the rails scripts can be run).&lt;/p&gt;
&lt;p&gt;Any insite as to how to go about this?&lt;/p&gt;
</description>
 <pubDate>Tue, 18 Mar 2008 13:06:30 -0700</pubDate>
 <dc:creator>webPragmatist</dc:creator>
 <guid isPermaLink="false">comment 4697 at http://community.activestate.com</guid>
</item>
<item>
 <title>Answering the question about listing attributes (finally)</title>
 <link>http://community.activestate.com/working-rails-2-0-scaffolds-komodo#comment-4252</link>
 <description>&lt;p&gt;You don&#039;t have to list all the attributes in the scaffold command.&lt;br /&gt;
The scaffold command will auto-generate the created_on and updated_on&lt;br /&gt;
timestamp fields for you automatically.  You can bypass that by&lt;br /&gt;
running the command from the command-line, like so:&lt;/p&gt;
&lt;pre class=&quot;geshifilter&quot;&gt;ruby script/generate scaffold --skip-timestamps ModelName attr:type ...&lt;/pre&gt;&lt;p&gt;
Later on you would use the &lt;code class=&quot;geshifilter&quot;&gt;generate/migration&lt;/code&gt; and&lt;br /&gt;
&lt;code class=&quot;geshifilter&quot;&gt;migrate/db:migrate&lt;/code&gt; commands to add more attributes,&lt;br /&gt;
just like in 1.x.&lt;/p&gt;
</description>
 <pubDate>Wed, 20 Feb 2008 14:05:30 -0800</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 4252 at http://community.activestate.com</guid>
</item>
<item>
 <title>You should be able to add new attributes incrementally</title>
 <link>http://community.activestate.com/working-rails-2-0-scaffolds-komodo#comment-4075</link>
 <description>&lt;p&gt;You&#039;ll have to manually update the views, but scaffold-generated&lt;br /&gt;
views have always been intended to be just scaffolding, and not&lt;br /&gt;
the final product.&lt;/p&gt;
&lt;p&gt;As I showed above, I find the controllers that the new&lt;br /&gt;
scaffolder generates to be pretty cool.&lt;/p&gt;
</description>
 <pubDate>Tue, 05 Feb 2008 10:31:42 -0800</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 4075 at http://community.activestate.com</guid>
</item>
<item>
 <title>Scaffolding changed with Rails 2.0 </title>
 <link>http://community.activestate.com/working-rails-2-0-scaffolds-komodo#comment-4074</link>
 <description>&lt;p&gt;The changes are not backward-compatible, unfortunately.&lt;br /&gt;
I couldn&#039;t resist showing some of the benefits of&lt;br /&gt;
the new version, while showing how to get going...&lt;/p&gt;
&lt;p&gt;The new site for the scaffold-resource-generated app is:&lt;/p&gt;
&lt;pre class=&quot;geshifilter&quot;&gt;http://localhost:3000/movies/&lt;/pre&gt;&lt;p&gt;
Because the scaffold generator is now restful it gives you&lt;br /&gt;
the following URIs:&lt;/p&gt;
&lt;pre class=&quot;geshifilter&quot;&gt;http://localhost:3000/movies/ ==&amp;gt; index

&lt;a href=&quot;http://localhost:3000/movies/3&quot; title=&quot;http://localhost:3000/movies/3&quot;&gt;http://localhost:3000/movies/3&lt;/a&gt; ==&amp;gt; display item 3

&lt;a href=&quot;http://localhost:3000/movies/4/edit&quot; title=&quot;http://localhost:3000/movies/4/edit&quot;&gt;http://localhost:3000/movies/4/edit&lt;/a&gt; ==&amp;gt; edit page for item 4

&lt;a href=&quot;http://localhost:3000/movies/new&quot; title=&quot;http://localhost:3000/movies/new&quot;&gt;http://localhost:3000/movies/new&lt;/a&gt; ==&amp;gt; display new-movie page&lt;/pre&gt;&lt;p&gt;
And you can add a &quot;.xml&quot; to the end of the URL:&lt;/p&gt;
&lt;pre class=&quot;geshifilter&quot;&gt;http://localhost:3000/movies/2.xml ==&amp;gt; return an XML view of item 2&lt;/pre&gt;&lt;p&gt;
Now add this line to the show method in movies_controller.rb,&lt;br /&gt;
under the format.xml line:&lt;/p&gt;
&lt;div class=&quot;geshi-block&quot;&gt;
&lt;div class=&quot;geshifilter ruby&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;span style=&quot;color:#CC0066; font-weight:bold;&quot;&gt;format&lt;/span&gt;.&lt;span style=&quot;color:#9900CC;&quot;&gt;js&lt;/span&gt; &lt;span style=&quot;color:#006600; font-weight:bold;&quot;&gt;&amp;#123;&lt;/span&gt; render &lt;span style=&quot;color:#ff3333; font-weight:bold;&quot;&gt;:json&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color:#0066ff; font-weight:bold;&quot;&gt;@movie&lt;/span&gt; &lt;span style=&quot;color:#006600; font-weight:bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;geshi-plain&quot;&gt;format.js { render :json =&amp;gt; @movie }&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Here&#039;s what the JSON Rails returns would look like.&lt;/p&gt;
&lt;pre class=&quot;geshifilter&quot;&gt;$ wget -q  -O - &lt;a href=&quot;http://localhost:3000/movies/2.js&quot; title=&quot;http://localhost:3000/movies/2.js&quot;&gt;http://localhost:3000/movies/2.js&lt;/a&gt;
{&quot;updated_at&quot;: &quot;2008/02/05 10:15:21 -0800&quot;,
 &quot;title&quot;: &quot;elf&quot;,
 &quot;id&quot;: 2,
 &quot;year&quot;: 2002, &quot;created_at&quot;: &quot;2008/02/05 10:15:21 -0800&quot;}
$&lt;/pre&gt;&lt;p&gt;
Hope this gets you going.  I plan on updating the toolset and&lt;br /&gt;
screencast to work with Rails 2 soon now.&lt;/p&gt;
</description>
 <pubDate>Tue, 05 Feb 2008 10:25:42 -0800</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 4074 at http://community.activestate.com</guid>
</item>
<item>
 <title>How many Attributes do you have to list?</title>
 <link>http://community.activestate.com/working-rails-2-0-scaffolds-komodo#comment-4073</link>
 <description>&lt;p&gt;Do you have to list all attributes of the model, or does this let you create a scaffold selectively?  Also, what is the address for the scaffold once it&#039;s created?  According to the tutorial, it should be &lt;a href=&quot;http://localhost:3000/library&quot; title=&quot;http://localhost:3000/library&quot;&gt;http://localhost:3000/library&lt;/a&gt;, but clearly it&#039;s not going to get the library name now.&lt;br /&gt;
:Nate Dickson&lt;/p&gt;
</description>
 <pubDate>Tue, 05 Feb 2008 09:53:16 -0800</pubDate>
 <dc:creator>PogiNate</dc:creator>
 <guid isPermaLink="false">comment 4073 at http://community.activestate.com</guid>
</item>
<item>
 <title>customizations</title>
 <link>http://community.activestate.com/screencast-rails-tutorial-1#comment-2057</link>
 <description>&lt;p&gt;plz provide any useful snippets, macros you might have created for your screencast...&lt;br /&gt;
maybe some of them are good for general use&lt;/p&gt;
&lt;p&gt;------edited------&lt;br /&gt;
yes, i found them in the IDE, however one&#039;s own snippets are &#039;handier&#039; rather than default...&lt;/p&gt;
</description>
 <pubDate>Mon, 25 Jun 2007 16:59:04 -0700</pubDate>
 <dc:creator>bVs</dc:creator>
 <guid isPermaLink="false">comment 2057 at http://community.activestate.com</guid>
</item>
<item>
 <title>They all ship with Komodo 4.1, both Edit and IDE</title>
 <link>http://community.activestate.com/screencast-rails-tutorial-1#comment-2068</link>
 <description>&lt;p&gt;I don&#039;t recall using any custom snippets or macros in the screencast,&lt;br /&gt;
just the ones that come with the Ruby on Rails Project Template.&lt;/p&gt;
&lt;p&gt;I actually used more snippets and macros in the thirty minute version&lt;br /&gt;
of that screencast, which for obvious reasons we scrapped.&lt;/p&gt;
&lt;p&gt;Would a screencast on snippets and macros alone be useful?&lt;/p&gt;
</description>
 <pubDate>Mon, 25 Jun 2007 10:48:31 -0700</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 2068 at http://community.activestate.com</guid>
</item>
<item>
 <title>Enjoyed the Rails screencast</title>
 <link>http://community.activestate.com/screencast-rails-tutorial-1#comment-2046</link>
 <description>&lt;p&gt;I have not played with Ruby yet .. I will definitely be taking a look after watching the screencast.&lt;/p&gt;
</description>
 <pubDate>Thu, 21 Jun 2007 17:05:41 -0700</pubDate>
 <dc:creator>minkley</dc:creator>
 <guid isPermaLink="false">comment 2046 at http://community.activestate.com</guid>
</item>
<item>
 <title>Screencast length is 15m47s</title>
 <link>http://community.activestate.com/screencast-rails-tutorial-1#comment-2044</link>
 <description>&lt;p&gt;In case you were curious before launching.&lt;/p&gt;
</description>
 <pubDate>Thu, 21 Jun 2007 15:58:58 -0700</pubDate>
 <dc:creator>ErinW</dc:creator>
 <guid isPermaLink="false">comment 2044 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
