<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-995418342835662118</id><updated>2012-02-07T18:31:37.879+01:00</updated><category term='exceptions'/><category term='forms'/><category term='language'/><category term='rmagic'/><category term='installation'/><category term='gems'/><title type='text'>Ruby on Rails Warrior</title><subtitle type='html'>Ror hints</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://railswarrior.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/995418342835662118/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://railswarrior.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Piotr R</name><uri>http://www.blogger.com/profile/04062244138253754316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-995418342835662118.post-8766192295029296865</id><published>2008-10-28T21:02:00.019+01:00</published><updated>2008-10-28T21:41:55.500+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='language'/><category scheme='http://www.blogger.com/atom/ns#' term='exceptions'/><title type='text'>Ruby on Rails - try catch finally block equivalent - exception catching</title><content type='html'>Looking for Ruby equivalent for "&lt;span style="font-weight:bold;"&gt;try catch finally&lt;/span&gt;"?&lt;br /&gt;&lt;br /&gt;I also have a problem with that from time to time ;)&lt;br /&gt;Its "&lt;span style="font-weight:bold;"&gt;begin rescue ensure end&lt;/span&gt;"&lt;br /&gt;&lt;pre style="font-size:140%"&gt;&lt;span style="font-weight: bold;"&gt;begin&lt;/span&gt;&lt;br /&gt;  somecode()&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;rescue&lt;/span&gt;&lt;br /&gt;  puts "Error #{$!}"&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;ensure &lt;/span&gt;&lt;br /&gt;  this_code_will_execute_always()&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;end&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/995418342835662118-8766192295029296865?l=railswarrior.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://railswarrior.blogspot.com/feeds/8766192295029296865/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railswarrior.blogspot.com/2008/10/ruby-on-rails-try-catch-finally.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/995418342835662118/posts/default/8766192295029296865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/995418342835662118/posts/default/8766192295029296865'/><link rel='alternate' type='text/html' href='http://railswarrior.blogspot.com/2008/10/ruby-on-rails-try-catch-finally.html' title='Ruby on Rails - try catch finally block equivalent - exception catching'/><author><name>Piotr R</name><uri>http://www.blogger.com/profile/04062244138253754316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-995418342835662118.post-876958620011814435</id><published>2008-10-26T16:21:00.018+01:00</published><updated>2008-10-29T14:42:21.775+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='forms'/><category scheme='http://www.blogger.com/atom/ns#' term='exceptions'/><title type='text'>1 error prohibited this user from being saved - rails form error_messages</title><content type='html'>If you have validated errors you can see the following messages:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1 error prohibited this user from being saved&lt;/span&gt;&lt;br /&gt;there were problems with the following fields:&lt;br /&gt;....&lt;/blockquote&gt;&lt;br /&gt;annoying and not very accurate - aren't they?&lt;br /&gt;&lt;br /&gt;If you want to &lt;span style="font-weight:bold;"&gt;change these default messages&lt;/span&gt; try to pass some extra params to the error_messages method:&lt;br /&gt;&lt;pre style="font-size:120%"&gt;form_for(@user,:url =&gt; { :action =&gt; "login" }) do |f| %&gt;&lt;br /&gt;  f.error_messages(&lt;br /&gt;    :header_message =&gt; 'X errors, please find red marks', &lt;br /&gt;    :message =&gt; 'Following errors were found:')&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/995418342835662118-876958620011814435?l=railswarrior.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://railswarrior.blogspot.com/feeds/876958620011814435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railswarrior.blogspot.com/2008/10/1-error-prohibited-this-user-from-being.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/995418342835662118/posts/default/876958620011814435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/995418342835662118/posts/default/876958620011814435'/><link rel='alternate' type='text/html' href='http://railswarrior.blogspot.com/2008/10/1-error-prohibited-this-user-from-being.html' title='1 error prohibited this user from being saved - rails form error_messages'/><author><name>Piotr R</name><uri>http://www.blogger.com/profile/04062244138253754316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-995418342835662118.post-5667597817691929926</id><published>2008-04-21T21:49:00.011+02:00</published><updated>2008-04-21T22:25:24.575+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='installation'/><category scheme='http://www.blogger.com/atom/ns#' term='gems'/><category scheme='http://www.blogger.com/atom/ns#' term='rmagic'/><title type='text'>RMagic installation Error: Can't find MagickCore.h.</title><content type='html'>While installing RMagic gem (Windows XP) I had the following error:&lt;br /&gt;&lt;blockquote&gt;Can't install RMagick. Can't find MagickCore.h&lt;/blockquote&gt;&lt;br /&gt;After many attempts I have downloaded the bundled version (containing both ImageMagic and RMAgic.gem) &lt;br /&gt;&lt;br /&gt;&lt;a href="http://files.rubyforge.vm.bytemark.co.uk/rmagick/RMagick-2.0.0-ImageMagick-6.3.7-8-Q8.zip"&gt;&lt;br /&gt;http://files.rubyforge...../RMagick-2.0.0-ImageMagick-6.3.7-8-Q8.zip&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After installing the ImageMagic from the zip file and doing the following&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;gem install rmagick --local&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I got: &lt;br /&gt;&lt;span style="font-style:italic;"&gt;Successfully installed rmagick-2.0.0-x86-mswin32&lt;br /&gt;1 gem installed&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;It finally works!&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/995418342835662118-5667597817691929926?l=railswarrior.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://railswarrior.blogspot.com/feeds/5667597817691929926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railswarrior.blogspot.com/2008/04/rmagic-installation-error-cant-find.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/995418342835662118/posts/default/5667597817691929926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/995418342835662118/posts/default/5667597817691929926'/><link rel='alternate' type='text/html' href='http://railswarrior.blogspot.com/2008/04/rmagic-installation-error-cant-find.html' title='RMagic installation Error: Can&apos;t find MagickCore.h.'/><author><name>Piotr R</name><uri>http://www.blogger.com/profile/04062244138253754316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-995418342835662118.post-3397283341805629548</id><published>2008-04-20T12:10:00.000+02:00</published><updated>2008-04-20T16:42:33.305+02:00</updated><title type='text'>First post</title><content type='html'>Few days ago I've started my adventure with rails - so right now I'm at the very beginning of the road (of the rails? :) Whenever I will see something interesting or hard for me I'll try to describe it here.  Hope it will help somebody ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/995418342835662118-3397283341805629548?l=railswarrior.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://railswarrior.blogspot.com/feeds/3397283341805629548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railswarrior.blogspot.com/2008/04/first-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/995418342835662118/posts/default/3397283341805629548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/995418342835662118/posts/default/3397283341805629548'/><link rel='alternate' type='text/html' href='http://railswarrior.blogspot.com/2008/04/first-post.html' title='First post'/><author><name>Piotr R</name><uri>http://www.blogger.com/profile/04062244138253754316</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
