Skip to content

Instantly share code, notes, and snippets.

@arkiver
Created December 30, 2013 10:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arkiver/dcb7cfc93f7f41d75213 to your computer and use it in GitHub Desktop.
Save arkiver/dcb7cfc93f7f41d75213 to your computer and use it in GitHub Desktop.
@user = Foo.find(session[:foo_id]).roles.find(:all,
:conditions => params[:search],
:include => :user,
:order => params[:order] + ‘ASC’)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment