Sha256: 41c396e2c8783d453084443f400fd29ebf00c8d2aaf4916255b173d14b4095e9
Contents?: true
Size: 521 Bytes
Versions: 10
Compression:
Stored size: 521 Bytes
Contents
class HomeController < ApplicationController around_filter :shopify_session, :except => 'welcome' def welcome current_host = "#{request.host}#{':' + request.port.to_s if request.port != 80}" @callback_url = "http://#{current_host}/login/finalize" end def index # get 5 products @products = ShopifyAPI::Product.find(:all, :params => {:limit => 10}) # get latest 5 orders @orders = ShopifyAPI::Order.find(:all, :params => {:limit => 5, :order => "created_at DESC" }) end end
Version data entries
10 entries across 10 versions & 1 rubygems