[Boulder Ruby Group] rendering now!

Brian Rose brian at heimidal.net
Fri Jun 29 01:32:37 EDT 2007


I might be misunderstanding, but if the problem is a double render, just
return the render:

before_filter :authenticate

def authenticate
  self.current_user ||= (session[:user] && User.find_by_id(session[:user]))
|| false
  return redirect_to(login_path) unless current_user
end

On 6/28/07, ara.t.howard <ara.t.howard at gmail.com> wrote:
>
>
> i hope i am doing something stupid and someone has a slicker way
>
>    http://drawohara.tumblr.com/post/4517961
>
> ??
>
> -a
> --
> we can deny everything, except that we have the possibility of being
> better. simply reflect on that.
> h.h. the 14th dalai lama
>
>
>
> _______________________________________________
> Bdrg-members mailing list
> Bdrg-members at rubyforge.org
> http://rubyforge.org/mailman/listinfo/bdrg-members
>



-- 
Brian 'Heimidal' Rose
brian at heimidal.net
http://www.heimidal.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20070628/1b7a1983/attachment.html 


More information about the Bdrg-members mailing list