Title / Description
Code def collection @search = Order.new_search(params[:search]) if params[:search].nil? || params[:search][:conditions].nil? @search.conditions.checkout_complete = true end @search.order_by ||= :created_at @search.order_as ||= "DESC" @search.per_page = Spree::Config[:orders_per_page] @collection = @search.find(:all, :include => [:user, :shipments, {:creditcards => :address}] ) end def this_is_pretty_cool @user = User.find(:name) end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code