This one works: config.consider_all_requests_local = true<div>Actually it was already in the staging.rb file I copied from production. <br><br><div class="gmail_quote">On 5 April 2012 12:25, Riccardo Tacconi <span dir="ltr"><<a href="mailto:rtacconi@gmail.com">rtacconi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you. Yes in Rails 3 does not work.<div><br></div><div><span style="font-family:'Helvetica Neue','Bitstream Vera Sans',Arial;font-size:13px;line-height:18px">ndefined method `consider_all_requests_local=' for ActionController::Base:Class</span><div>
<div class="h5"><br>
<br><div class="gmail_quote">On 5 April 2012 12:01, Max Williams <span dir="ltr"><<a href="mailto:toastkid.williams@gmail.com" target="_blank">toastkid.williams@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
#in config/environments/staging.rb<br>config.action_controller.consider_all_requests_local = true<div><br></div><div>(this is the rails 2 syntax, may have changed for rails 3)</div><div><div><div>
<br><div class="gmail_quote">On 5 April 2012 10:58, Riccardo Tacconi <span dir="ltr"><<a href="mailto:rtacconi@gmail.com" target="_blank">rtacconi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is it possible to display the errors in staging (on the page) the same way as development does?<br><br><div class="gmail_quote">
<div><div>On 4 April 2012 18:52, javier ramirez <span dir="ltr"><<a href="mailto:jramirez@aspgems.com" target="_blank">jramirez@aspgems.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><u></u>
<div text="#000000" bgcolor="#ffffff">
<br>
Hi,<div><br>
<br>
<blockquote type="cite">Running the whole site under https is a solution, but
they asked me to 'protect' only a couple of controllers. I am not
using a gem, I am using this in ApplicationController</blockquote>
<br></div>
Just be aware in that case your application would be vulnerable to
session stealing by intercepting your cookie (via firesheep, for
example) unless you are using the cookie only on the safe actions
and you mark it as secure only.<div><br>
<br>
<div>-- <br>
<p>javier ramírez</p>
<p> ..i do ruby on rails development in madrid, spain, at <a href="http://www.aspgems.com" target="_blank">http://www.aspgems.com</a>
</p>
<p> <a href="http://javier-ramirez.com" title="javier ramirez" target="_blank">javier
ramirez's home page (http://javier-ramirez.com)</a><br>
<a href="http://formatinternet.com" title="format internet :
ruby on rails blog by javier ramirez" target="_blank">javier ramirez's blog
(http://formatinternet.com)</a><br>
</p>
</div>
</div></div>
<br></div></div><div>_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org" target="_blank">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br></div></blockquote></div><div><div><br><br clear="all"><div><br></div>-- <br>Riccardo Tacconi<br>Ruby on Rails and PHP development - System Administration<br>VIRTUELOGIC LIMITED<br><br><a href="http://github.com/rtacconi" target="_blank">http://github.com/rtacconi</a><br>
<a href="http://riccardotacconi.blogspot.com" target="_blank">http://riccardotacconi.blogspot.com</a><br><a href="http://twitter.com/rtacconi" target="_blank">http://twitter.com/rtacconi</a><br>
</div></div><br>_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org" target="_blank">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org" target="_blank">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Riccardo Tacconi<br>Ruby on Rails and PHP development - System Administration<br>VIRTUELOGIC LIMITED<br><br><a href="http://github.com/rtacconi" target="_blank">http://github.com/rtacconi</a><br>
<a href="http://riccardotacconi.blogspot.com" target="_blank">http://riccardotacconi.blogspot.com</a><br><a href="http://twitter.com/rtacconi" target="_blank">http://twitter.com/rtacconi</a><br>
</div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Riccardo Tacconi<br>Ruby on Rails and PHP development - System Administration<br>VIRTUELOGIC LIMITED<br><br><a href="http://github.com/rtacconi" target="_blank">http://github.com/rtacconi</a><br>
<a href="http://riccardotacconi.blogspot.com" target="_blank">http://riccardotacconi.blogspot.com</a><br><a href="http://twitter.com/rtacconi" target="_blank">http://twitter.com/rtacconi</a><br>
</div>