Skip to content

Instantly share code, notes, and snippets.

@jsmestad
Created January 16, 2009 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsmestad/47755 to your computer and use it in GitHub Desktop.
Save jsmestad/47755 to your computer and use it in GitHub Desktop.
def index
@user = User.all('user.shortcode'.not => nil)
display @user
end
class Shortcode
belongs_to :user
end
class User
has 1, :shortcode
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment