Displaying 2 results from an estimated 2 matches for "rendererror".
2006 Jun 27
0
More idiomatic way of doing this
Folks,
I''m trying to write a validating filter that checks if the user
exists and renders XML if not. Most of the controllers will be
returning XML on some error or other so I''m including RenderError in
ApplicationController.
Is my approach a sound one? Also, is there a shorter and more
idiomatic way of writing this:
if @user.nil?
render_user_exists params[:username]
false
else
true
end
Rest of the code below...
lib/util/render_error.rb:...
2007 Oct 27
2
render_with_no_layout cause by Pingdom
Hi,
When I go to my homepage all is well, however when the Pingdom bot
arrives (every few seconds!), it throws the following error:
ActionController::RenderError occurred in home#index:
You called render with invalid options : available
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:808:in
`render_with_no_layout''
My index action doesn''t call render, it just renders the index.rhtml
file as per normal.
These are the...