<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for Jonathan</title><link>http://disqus.com/people/e574ea7b5ee6c3d4a963f4a76fc4afb3/</link><description></description><language>en</language><lastBuildDate>Sun, 01 Jun 2008 01:43:22 -0000</lastBuildDate><item><title>Re: Testing with Basic HTTP Authentication in Rails 2.0 | ruby on rails blog</title><link>http://rubyonrailsblog.disqus.com/testing_with_basic_http_authentication_in_rails_20_ruby_on_rails_blog/#comment-1907417</link><description>It's always kind of cool when random people read your blog and you can help them :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Tue, 19 Feb 2008 21:20:17 -0000</pubDate></item><item><title>Re: Calculate age in Rails with a birthday | ruby on rails blog</title><link>http://rubyonrailsblog.disqus.com/calculate_age_in_rails_with_a_birthday_ruby_on_rails_blog/#comment-1907428</link><description>Thanks for that post. When we did the age calculation it was meant to give us an approximation of our user base. Since it was not critical to have 100% accurate information, leap year was overlooked :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Mon, 25 Feb 2008 22:32:05 -0000</pubDate></item><item><title>Re: Change Rails&amp;#8217; layout via controller | ruby on rails blog</title><link>http://rubyonrailsblog.disqus.com/change_rails8217_layout_via_controller_ruby_on_rails_blog/#comment-1907446</link><description>Steve, try something like this inside your method:&lt;br&gt;&lt;br&gt;&amp;lt;pre lang="rails" line="0"&amp;gt;&lt;br&gt;render :action =&amp;gt; "index", :layout =&amp;gt; "help"&lt;br&gt;&amp;lt;/pre&amp;gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Fri, 29 Feb 2008 13:29:21 -0000</pubDate></item><item><title>Re: Change Rails&amp;#8217; layout via controller | ruby on rails blog</title><link>http://rubyonrailsblog.disqus.com/change_rails8217_layout_via_controller_ruby_on_rails_blog/#comment-1907445</link><description>Steve, this should make sense, if not, let me know.&lt;br&gt;&lt;br&gt;&amp;lt;pre lang="ruby" line="1"&amp;gt;&lt;br&gt;class DashboardController &amp;lt; ApplicationController&lt;br&gt;  layout 'primary'&lt;br&gt;&lt;br&gt;  def index&lt;br&gt;    @everything = Stuff.find(:all)&lt;br&gt;  end&lt;br&gt;  &lt;br&gt;  def show&lt;br&gt;    @something = Stuff.find(params[:id])&lt;br&gt;    render :layout =&amp;gt; "secondary"&lt;br&gt;  end&lt;br&gt;  &lt;br&gt;end&lt;br&gt;&lt;br&gt;&amp;lt;/pre&amp;gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Mon, 03 Mar 2008 19:59:19 -0000</pubDate></item><item><title>Re: Change Rails&amp;#8217; layout via controller | ruby on rails blog</title><link>http://rubyonrailsblog.disqus.com/change_rails8217_layout_via_controller_ruby_on_rails_blog/#comment-1907448</link><description>I had the same problem trying to figure that out :) Glad I could help!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Tue, 04 Mar 2008 16:15:58 -0000</pubDate></item><item><title>Re: Rails send email tutorial | ruby on rails blog</title><link>http://rubyonrailsblog.disqus.com/rails_send_email_tutorial_ruby_on_rails_blog/#comment-1907459</link><description>All- I'll address your comments shortly. I've been working non-stop to meet our April 2nd deadline for the &lt;a href="http://meeta.com" rel="nofollow"&gt;free online dating&lt;/a&gt; site we've been working on!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Thu, 03 Apr 2008 04:57:57 -0000</pubDate></item><item><title>Re: Ruby on Rails Tutorial, now with more 2.0.2! | ruby on rails blog</title><link>http://rubyonrailsblog.disqus.com/ruby_on_rails_tutorial_now_with_more_202_ruby_on_rails_blog/#comment-1907494</link><description>pritish:&lt;br&gt;&lt;br&gt;I have the command to generate a Rails app for use with a MySQL database, maybe I will make it bold so it's clearer.&lt;br&gt;&lt;br&gt;As for, rake db:create:all, I've never used it...EVER :P Thanks for posting, perhaps somebody else will have that problem.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Wed, 09 Apr 2008 14:59:46 -0000</pubDate></item><item><title>Re: Ruby on Rails Tutorial, now with more 2.0.2! | ruby on rails blog</title><link>http://rubyonrailsblog.disqus.com/ruby_on_rails_tutorial_now_with_more_202_ruby_on_rails_blog/#comment-1907496</link><description>Steve, you are getting an error because you aren't running Rails 2.0&lt;br&gt;&lt;br&gt;Try visiting the link to the ONLAMP article I have posted, or updating to Rails 2.0.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Thu, 10 Apr 2008 13:48:02 -0000</pubDate></item><item><title>Re: PHP vs Rails | ruby on rails blog</title><link>http://rubyonrailsblog.disqus.com/php_vs_rails_ruby_on_rails_blog/#comment-1907539</link><description>That's true, you can't compare PHP to the Rails framework...but even against cake PHP, Rails is leaps and bounds better!&lt;br&gt;&lt;br&gt;As for the PHP code that I posted, obviously that code could be drastically reduced with SQL triggers and better code, but for the most part, a new programmer using PHP vs one using Ruby, Ruby is going to be the winner :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Fri, 11 Apr 2008 01:56:19 -0000</pubDate></item><item><title>Re: Basic Rail&amp;#8217;s routing and a journey into Views, and Controllers | ruby on rails blog</title><link>http://rubyonrailsblog.disqus.com/basic_rail8217s_routing_and_a_journey_into_views_and_controllers_ruby_on_rails_blog/#comment-1907564</link><description>The methods (edit_book_path, destroy using :method =&amp;gt; :delete, and new_post_path) do not look standard because they use something called resources. This is a little tricky, and I will be devoting a post to it.&lt;br&gt;&lt;br&gt;Nik: I overlooked that, thanks.&lt;br&gt;Mitch: Authentication, for what? User login?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Fri, 18 Apr 2008 16:19:09 -0000</pubDate></item><item><title>Re: Rails Relationships | ruby on rails blog</title><link>http://rubyonrailsblog.disqus.com/rails_relationships_ruby_on_rails_blog/#comment-1907612</link><description>Your best bet would be the Rails API, the mailing list, or any of the forums.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Mon, 05 May 2008 13:30:03 -0000</pubDate></item><item><title>Re: Ruby on Rails Tutorial, now with more 2.0.2! | ruby on rails blog</title><link>http://rubyonrailsblog.disqus.com/ruby_on_rails_tutorial_now_with_more_202_ruby_on_rails_blog/#comment-1907484</link><description>Yes, you would need to run a scaffold for each model, seperately. &lt;br&gt;&lt;br&gt;db:migrate will migrate through all of your migrations, so no, you don't need to run it each time, unless of course you need those fields generated in the database immediately.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Wed, 07 May 2008 13:08:16 -0000</pubDate></item><item><title>Re: Rails Relationships | ruby on rails blog</title><link>http://rubyonrailsblog.disqus.com/rails_relationships_ruby_on_rails_blog/#comment-1907616</link><description>Adam: Thanks for that clarification, I didn't want to confuse any new users, but you are correct :) I thought about writing in some comments for those who have used the LAMP stack prior to Rails, but decided against it.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Thu, 08 May 2008 13:03:51 -0000</pubDate></item><item><title>Re: Rails Relationships | ruby on rails blog</title><link>http://rubyonrailsblog.disqus.com/rails_relationships_ruby_on_rails_blog/#comment-1907615</link><description>Isaac:&lt;br&gt;&lt;br&gt;Thanks for the kind words. I'm assuming you're talking about this &lt;br&gt;migration?&lt;br&gt;&lt;br&gt;&amp;lt;pre&amp;gt;script/generate migration add_author_id_to_books&amp;lt;/pre&amp;gt;&lt;br&gt;&lt;br&gt;If that is the case, it should be empty. When you generate a migration, it will create an empty file. You then proceed to fill in the blanks, the areas between self.up and self.down. It should look like this...&lt;br&gt;&lt;br&gt;&amp;lt;pre code="rails"&amp;gt;&lt;br&gt;class AddAuthorIdToBooks &amp;lt; ActiveRecord::Migration&lt;br&gt;  def self.up&lt;br&gt;    add_column :books, :author_id, :int&lt;br&gt;  end&lt;br&gt;&lt;br&gt;  def self.down&lt;br&gt;    remove_column :books, :author_id&lt;br&gt;  end&lt;br&gt;end&lt;br&gt;&amp;lt;/pre&amp;gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Thu, 08 May 2008 14:02:21 -0000</pubDate></item><item><title>Re: Ruby on Rails Tutorial, now with more 2.0.2! | ruby on rails blog</title><link>http://rubyonrailsblog.disqus.com/ruby_on_rails_tutorial_now_with_more_202_ruby_on_rails_blog/#comment-1907489</link><description>Andrew:&lt;br&gt;&lt;br&gt;The destroy link has a JS confirmation prompt, which you can disable in the view. &lt;br&gt;&lt;br&gt;It's nothing to fault the framework for, the destroy link you see was the result of a scaffold generation, which allows you get get your application up and running.&lt;br&gt;&lt;br&gt;If for some reason, you need to run an application that supports non-JS users, of course you will need to make those changes.&lt;br&gt;&lt;br&gt;Like I've stated before, scaffolding is meant to assist with development...not replace it. How many skyscrapers or houses do you see, post-production, with scaffolding?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Fri, 09 May 2008 13:51:51 -0000</pubDate></item><item><title>Re: Rails Relationships | ruby on rails blog</title><link>http://rubyonrailsblog.disqus.com/rails_relationships_ruby_on_rails_blog/#comment-1907608</link><description>Peter and Pawel:&lt;br&gt;&lt;br&gt;haha, sometimes I get ahead of myself, I'll go back and fix that typo...I think in future posts, I'll just insert random bugs and see if you guys really are paying attention ;)&lt;br&gt;&lt;br&gt;I'm going to do some writing on nested routes, which is what you described (/books1/author) in my next iteration .</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Fri, 09 May 2008 15:24:22 -0000</pubDate></item><item><title>Re: Rails Relationships | ruby on rails blog</title><link>http://rubyonrailsblog.disqus.com/rails_relationships_ruby_on_rails_blog/#comment-1907619</link><description>You can run sqlite and mongrel at the same time, just do it in different windows.&lt;br&gt;&lt;br&gt;I run sqlite as follows:&lt;br&gt;&amp;lt;pre&amp;gt;&lt;br&gt;ng:bookstore$ sqlite3 db/development.sqlite3 &lt;br&gt;SQLite version 3.4.0&lt;br&gt;Enter ".help" for instructions&lt;br&gt;sqlite&amp;gt; &lt;br&gt;&lt;br&gt;&amp;lt;/pre&amp;gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Sat, 10 May 2008 16:11:20 -0000</pubDate></item><item><title>Re: Basic Rail&amp;#8217;s routing and a journey into Views, and Controllers | ruby on rails blog</title><link>http://rubyonrailsblog.disqus.com/basic_rail8217s_routing_and_a_journey_into_views_and_controllers_ruby_on_rails_blog/#comment-1907569</link><description>I'll add in the database configuration, sometimes I forget all my local development stuff is root with no password :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Sun, 11 May 2008 16:19:03 -0000</pubDate></item><item><title>Re: Encode HTML entities in helpers and views in Ruby on Rails | ruby on rails blog</title><link>http://rubyonrailsblog.disqus.com/encode_html_entities_in_helpers_and_views_in_ruby_on_rails_ruby_on_rails_blog/#comment-1907441</link><description>Thanks for the update, I'll adjust the post accordingly!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Sun, 01 Jun 2008 01:43:22 -0000</pubDate></item></channel></rss>