Consider the following code:
respond_to do |format|
format.js { render :layout => false }
format.xml { head :ok }
end
Now I know you can specify a whole bunch of formats, but is there a way to specify all other formats (in this case other than .jx and .xml) to save me from having to specify every specific format explicitly?
I guess I kind of want an "if-else" type condition. Is this possible with respond_to do |format|
?