Displaying 1 result from an estimated 1 matches for "popup_error".
2007 Jul 02
3
stupid Rails rendering
...ble to have a conditional
redirection in rendering
respond_to do |format|
format.js {
render :update do |page|
page.redirect_to posts_url if @located
page.replace_html ''error_message'', "Error..."
page << "$(''popup_error'').popup.show();"
end
}
end
raise an error... => Can only render or redirect once per action
what shoudl do if I don"t want to render OR redirect
respond_to do |format|
format.js {
page.redirect_to posts_url if @located
render :update d...