I’ve been searching with not much luck for this… I have the code
url = params[:url];
if url == ""
@myString = "No URL specified, cannot continue"
else
=begin
DO SOME STUFFS....
=end
end
But the DO SOME STUFFS is still getting called. I have my index page which I perform actions on the _GET variables. I’d like to load the index page without the parameters in the URL. How do I check if they are set – if they’re not, then display a message. If they are, process the requests…
Thanks!
params[:url]will benilif not provided.nilevaluates false in a conditional.