Skip to content

Instantly share code, notes, and snippets.

@jabley
Created June 19, 2009 09:12
Show Gist options
  • Save jabley/132521 to your computer and use it in GitHub Desktop.
Save jabley/132521 to your computer and use it in GitHub Desktop.
require 'java'
import org.apache.commons.lang.StringUtils
class UsersController < ApplicationController
# GET /users
# GET /users.xml
def index
@users = []
@is_blank = StringUtils.isBlank("a".to_java_string)
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @users }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment