<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>Ruby brothers - redirect_to :back Comments</title>
  <id>tag:www.rubybrothers.ru,2009:/2008/5/21/redirect-to-back/comments</id>
  <generator version="0.7.3" uri="http://mephistoblog.com">Mephisto Noh-Varr</generator>
  <link href="http://www.rubybrothers.ru/2008/5/21/redirect-to-back/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/2008/5/21/redirect-to-back" rel="alternate" type="text/html"/>
  <updated>2008-10-07T20:23:27Z</updated>
  <entry xml:base="http://www.rubybrothers.ru">
    <author>
      <name>Dmitry Polushkin</name>
    </author>
    <id>tag:www.rubybrothers.ru,2008-05-21:448:726</id>
    <published>2008-10-07T20:23:27Z</published>
    <updated>2008-10-07T20:23:27Z</updated>
    <category term="Ruby on Rails"/>
    <category term="Tips &amp; Tricks"/>
    <category term="&#1053;&#1086;&#1074;&#1080;&#1095;&#1082;&#1091;"/>
    <link href="http://www.rubybrothers.ru/2008/5/21/redirect-to-back" rel="alternate" type="text/html"/>
    <title>Comment on 'redirect_to :back' by Dmitry Polushkin</title>
<content type="html">&lt;p&gt;Идея хорошая, да&#160;реализация хромает. Нужно, к&#160;примеру, для&#160;полиморфных ресурсов, однако реферер &#8211; это&#160;то, почему наверное не&#160;стоит проверять&#8230; самый лучший способ это&#160;хранить ссылку на&#160;предыдущую страницу в&#160;сессии, а&#160;лучше всего id&#160;+ session back url.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.rubybrothers.ru">
    <author>
      <name>Lexa</name>
    </author>
    <id>tag:www.rubybrothers.ru,2008-05-21:448:575</id>
    <published>2008-08-15T07:03:12Z</published>
    <updated>2008-08-15T07:03:12Z</updated>
    <category term="Ruby on Rails"/>
    <category term="Tips &amp; Tricks"/>
    <category term="&#1053;&#1086;&#1074;&#1080;&#1095;&#1082;&#1091;"/>
    <link href="http://www.rubybrothers.ru/2008/5/21/redirect-to-back" rel="alternate" type="text/html"/>
    <title>Comment on 'redirect_to :back' by Lexa</title>
<content type="html">&lt;p&gt;а&#160;как реферер проверить? &lt;a href=&quot;http://kino2.net&quot;&gt; &lt;/a&gt;&lt;a href=&quot;http://cotik.net&quot;&gt; &lt;/a&gt;&lt;a href=&quot;http://firmshop.biz&quot;&gt; &lt;/a&gt;&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.rubybrothers.ru">
    <author>
      <name>&#1053;&#1077;&#1095;&#1072;&#1077;&#1074; &#1042;&#1072;&#1085;&#1103;</name>
    </author>
    <id>tag:www.rubybrothers.ru,2008-05-21:448:545</id>
    <published>2008-07-07T14:14:05Z</published>
    <updated>2008-07-07T14:14:05Z</updated>
    <category term="Ruby on Rails"/>
    <category term="Tips &amp; Tricks"/>
    <category term="&#1053;&#1086;&#1074;&#1080;&#1095;&#1082;&#1091;"/>
    <link href="http://www.rubybrothers.ru/2008/5/21/redirect-to-back" rel="alternate" type="text/html"/>
    <title>Comment on 'redirect_to :back' by &#1053;&#1077;&#1095;&#1072;&#1077;&#1074; &#1042;&#1072;&#1085;&#1103;</title>
<content type="html">&lt;p&gt;Спасибо, учту при&#160;работе&#8230;&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.rubybrothers.ru">
    <author>
      <name>&#1042;&#1072;&#1089;&#1103;</name>
    </author>
    <id>tag:www.rubybrothers.ru,2008-05-21:448:469</id>
    <published>2008-06-24T16:55:52Z</published>
    <updated>2008-06-24T16:55:52Z</updated>
    <category term="Ruby on Rails"/>
    <category term="Tips &amp; Tricks"/>
    <category term="&#1053;&#1086;&#1074;&#1080;&#1095;&#1082;&#1091;"/>
    <link href="http://www.rubybrothers.ru/2008/5/21/redirect-to-back" rel="alternate" type="text/html"/>
    <title>Comment on 'redirect_to :back' by &#1042;&#1072;&#1089;&#1103;</title>
<content type="html">&lt;p&gt;Метод действительно интересный, спасибо.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.rubybrothers.ru">
    <author>
      <name>Kolinzzz</name>
    </author>
    <id>tag:www.rubybrothers.ru,2008-05-21:448:453</id>
    <published>2008-05-24T13:21:39Z</published>
    <updated>2008-05-24T13:21:39Z</updated>
    <category term="Ruby on Rails"/>
    <category term="Tips &amp; Tricks"/>
    <category term="&#1053;&#1086;&#1074;&#1080;&#1095;&#1082;&#1091;"/>
    <link href="http://www.rubybrothers.ru/2008/5/21/redirect-to-back" rel="alternate" type="text/html"/>
    <title>Comment on 'redirect_to :back' by Kolinzzz</title>
<content type="html">&lt;p&gt;Определённо полезно!&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.rubybrothers.ru">
    <author>
      <name>kelyar</name>
    </author>
    <id>tag:www.rubybrothers.ru,2008-05-21:448:452</id>
    <published>2008-05-23T13:54:12Z</published>
    <updated>2008-05-23T13:54:12Z</updated>
    <category term="Ruby on Rails"/>
    <category term="Tips &amp; Tricks"/>
    <category term="&#1053;&#1086;&#1074;&#1080;&#1095;&#1082;&#1091;"/>
    <link href="http://www.rubybrothers.ru/2008/5/21/redirect-to-back" rel="alternate" type="text/html"/>
    <title>Comment on 'redirect_to :back' by kelyar</title>
<content type="html">&lt;p&gt;не&#160;знаю как&#160;сейчас, но&#160;раньше это&#160;валилось, если http_referer был&#160;не&#160;определен&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.rubybrothers.ru">
    <author>
      <name>tribesman</name>
    </author>
    <id>tag:www.rubybrothers.ru,2008-05-21:448:451</id>
    <published>2008-05-22T08:58:04Z</published>
    <updated>2008-05-22T08:58:04Z</updated>
    <category term="Ruby on Rails"/>
    <category term="Tips &amp; Tricks"/>
    <category term="&#1053;&#1086;&#1074;&#1080;&#1095;&#1082;&#1091;"/>
    <link href="http://www.rubybrothers.ru/2008/5/21/redirect-to-back" rel="alternate" type="text/html"/>
    <title>Comment on 'redirect_to :back' by tribesman</title>
<content type="html">&lt;p&gt;давно использую, но&#160;сталкнулся с&#160;тем, что&#160;некоторые личности в&#160;опере нечайно снимают галочку с&#160;пункта передавать referer и&#160;тогда случается ошибка, так&#160;что приходится использовать вместе с&#160;rescue &#8230;&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.rubybrothers.ru">
    <author>
      <name>buger</name>
    </author>
    <id>tag:www.rubybrothers.ru,2008-05-21:448:450</id>
    <published>2008-05-22T07:28:40Z</published>
    <updated>2008-05-22T07:28:40Z</updated>
    <category term="Ruby on Rails"/>
    <category term="Tips &amp; Tricks"/>
    <category term="&#1053;&#1086;&#1074;&#1080;&#1095;&#1082;&#1091;"/>
    <link href="http://www.rubybrothers.ru/2008/5/21/redirect-to-back" rel="alternate" type="text/html"/>
    <title>Comment on 'redirect_to :back' by buger</title>
<content type="html">&lt;p&gt;Ага&#160;а&#160;еще весело будет если в&#160;браузер сразу вбить /destroy/:id
Бесконечные редиректы пойдут, ну&#160;относительно бесконечные )&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.rubybrothers.ru">
    <author>
      <name>estarter</name>
    </author>
    <id>tag:www.rubybrothers.ru,2008-05-21:448:449</id>
    <published>2008-05-21T23:07:22Z</published>
    <updated>2008-05-21T23:07:22Z</updated>
    <category term="Ruby on Rails"/>
    <category term="Tips &amp; Tricks"/>
    <category term="&#1053;&#1086;&#1074;&#1080;&#1095;&#1082;&#1091;"/>
    <link href="http://www.rubybrothers.ru/2008/5/21/redirect-to-back" rel="alternate" type="text/html"/>
    <title>Comment on 'redirect_to :back' by estarter</title>
<content type="html">&lt;p&gt;да, офигенно, если пользователь пришел с show&#8230;&lt;/p&gt;</content>  </entry>
</feed>
