On Wed, Jul 29, 2009 at 4:48 PM, Craig White<[email protected]> wrote:
>
> I am seeing some more differences between 1.2.x and 2.3.2 and they just
> baffle me.
>
> def some_method
>  if params[:report][:salesmancode].to_s == '' || !
>    params[:report][:periodno]
>    flash[:message] = "You forgot to select an employee or pick a time
>    period"
>    redirect_to :back

return false

>  else
>    blah, blah
>  end
>  render :layout => false
> end
>
> and I get a message about not being able to render/direct to more than 1
> time. Why doesn't 'redirect_to :back' simply end processing and redirect
> the user? Is there some better way of doing this now?



-- 
Greg Donald
http://destiney.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to