Comments on: Edge Rails Updates /2010/05/14/edge-rails-updates/ Its all about Ruby On Rails Thu, 14 Mar 2013 06:19:42 +0000 hourly 1 #/?v= By: Satish /2010/05/14/edge-rails-updates/comment-page-1/#comment-1371 Satish Mon, 24 May 2010 13:16:23 +0000 /?p=391#comment-1371 cookies.permanent.signed[:remember_me] = current_user.id redirect_to '/nowhere', :alert => "Beware the nowheres!" Object#presence that returns the object if it’s #present? otherwise returns nil. Example: region = params[:state].presence cookies.permanent.signed[:remember_me] = current_user.id
redirect_to ‘/nowhere’, :alert => “Beware the nowheres!”
Object#presence that returns the object if it’s #present? otherwise returns nil. Example: region = params[:state].presence

]]>
By: Akhil Bansal /2010/05/14/edge-rails-updates/comment-page-1/#comment-1370 Akhil Bansal Mon, 24 May 2010 13:02:01 +0000 /?p=391#comment-1370 A new method rename_index is also added to rename database index.(Post updated) A new method rename_index is also added to rename database index.(Post updated)

]]>
By: Satish /2010/05/14/edge-rails-updates/comment-page-1/#comment-1369 Satish Mon, 24 May 2010 12:56:27 +0000 /?p=391#comment-1369 Post.reset_counters(1234, :comments) Post.reset_counters(1234, :comments)

]]>
By: Christoph /2010/05/14/edge-rails-updates/comment-page-1/#comment-1353 Christoph Sat, 15 May 2010 12:40:15 +0000 /?p=391#comment-1353 @grosser Last year != letztes Jahr, its more like THE last year, like right before armageddon, so I think prev_year makes more sense @grosser Last year != letztes Jahr, its more like THE last year, like right before armageddon, so I think prev_year makes more sense

]]>
By: pjm /2010/05/14/edge-rails-updates/comment-page-1/#comment-1352 pjm Sat, 15 May 2010 01:35:56 +0000 /?p=391#comment-1352 "Depricated" is deprecated in favor of "deprecated". Sorry... “Depricated” is deprecated in favor of “deprecated”.

Sorry…

]]>
By: grosser /2010/05/14/edge-rails-updates/comment-page-1/#comment-1351 grosser Fri, 14 May 2010 19:17:14 +0000 /?p=391#comment-1351 Gnaa I like natural named methods, and last_year sounds way better then prev_year ... Gnaa I like natural named methods, and last_year sounds way better then prev_year …

]]>
By: Tweets that mention Edge rails updates | WebOnRails -- Topsy.com /2010/05/14/edge-rails-updates/comment-page-1/#comment-1350 Tweets that mention Edge rails updates | WebOnRails -- Topsy.com Fri, 14 May 2010 16:20:29 +0000 /?p=391#comment-1350 [...] This post was mentioned on Twitter by Marcus Sá. Marcus Sá said: Edge Rails Updates http://bit.ly/dAjO4T [...] [...] This post was mentioned on Twitter by Marcus Sá. Marcus Sá said: Edge Rails Updates http://bit.ly/dAjO4T [...]

]]>