From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.229.109.203 with SMTP id k11cs10552qcp; Thu, 18 Aug 2011 02:09:59 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of rack-devel+bncCKrE1uToHRDkrbPyBBoES_J6RA@googlegroups.com designates 10.147.13.1 as permitted sender) client-ip=10.147.13.1; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCKrE1uToHRDkrbPyBBoES_J6RA@googlegroups.com designates 10.147.13.1 as permitted sender) smtp.mail=rack-devel+bncCKrE1uToHRDkrbPyBBoES_J6RA@googlegroups.com; dkim=pass header.i=rack-devel+bncCKrE1uToHRDkrbPyBBoES_J6RA@googlegroups.com Received: from mr.google.com ([10.147.13.1]) by 10.147.13.1 with SMTP id q1mr211888yai.27.1313658599245 (num_hops = 1); Thu, 18 Aug 2011 02:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:in-reply-to:references:date :message-id:subject:from:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=Wyih0fEazKQl5NXRsv7xVDwqKOMCjUCVj0SHtZQln4c=; b=OwcWFRPaAH6XzBxk4TeHzFwtfE8Zod64ad+IGyag4riXeLIOOrV4zQ4jOEu7sPhNJA S6XddimiTtN1CFI6XRsDubgHJy4YZE+hDoG44TrjRUQaDHMHsc+E/RssivkEVnespxIA lpCet0UHs1d1w6gtlAI8NWkZ5EEG1jn5PJ5fo= Received: by 10.147.13.1 with SMTP id q1mr55690yai.27.1313658596518; Thu, 18 Aug 2011 02:09:56 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.101.41.5 with SMTP id t5ls6678334anj.2.gmail; Thu, 18 Aug 2011 02:09:55 -0700 (PDT) Received: by 10.100.122.7 with SMTP id u7mr512416anc.10.1313658595378; Thu, 18 Aug 2011 02:09:55 -0700 (PDT) Received: by 10.100.122.7 with SMTP id u7mr512414anc.10.1313658595353; Thu, 18 Aug 2011 02:09:55 -0700 (PDT) Received: from mail-pz0-f47.google.com (mail-pz0-f47.google.com [209.85.210.47]) by gmr-mx.google.com with ESMTPS id kr11si3795355pbb.1.2011.08.18.02.09.54 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 18 Aug 2011 02:09:54 -0700 (PDT) Received-SPF: pass (google.com: domain of nyros.umamahesh@gmail.com designates 209.85.210.47 as permitted sender) client-ip=209.85.210.47; Received: by mail-pz0-f47.google.com with SMTP id 2so2607691pzk.20 for ; Thu, 18 Aug 2011 02:09:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.140.18 with SMTP id n18mr310856wfd.61.1313658594063; Thu, 18 Aug 2011 02:09:54 -0700 (PDT) Received: by 10.142.231.11 with HTTP; Thu, 18 Aug 2011 02:09:54 -0700 (PDT) In-Reply-To: References: Date: Thu, 18 Aug 2011 14:39:54 +0530 Message-ID: Subject: Re: difference between normal rails application and rack application From: Uma Mahesh Nyros To: rack-devel@googlegroups.com X-Original-Sender: nyros.umamahesh@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of nyros.umamahesh@gmail.com designates 209.85.210.47 as permitted sender) smtp.mail=nyros.umamahesh@gmail.com; dkim=pass (test mode) header.i=@gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: X-Google-Group-Id: 486215384060 List-Post: , List-Help: , List-Archive: Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: multipart/alternative; boundary=000e0cd18572daf4da04aac3f974 --000e0cd18572daf4da04aac3f974 Content-Type: text/plain; charset=ISO-8859-1 Thank You very much Aslak, Your explanation is very clear and I got the clear idea of rack.. Thank you once again. On Thu, Aug 18, 2011 at 1:04 PM, aslak hellesoy wrote: > On Thu, Aug 18, 2011 at 5:34 AM, Uma Mahesh Nyros > wrote: > > Hi, > > > > I am new to rack. I have few baisc questions on it. > > > > Can I know the difference between normal rails application and rack > > application.? What are the uses of rack application? Why we need to > > use rack application ? > > Rack is a small library that sits between your HTTP server (WEBrick, > Thin, Mongrel etc) and your higher level web framework (Rails). > > [HTTP Server] <---> [Rack] <---> [Rails] <---> [Your app] > > Rack translates HTTP requests to very simple and low level Ruby method > invocations. Likewise, it translates low level Ruby method invocations > back to a HTTP response. > > It's possible to write a Ruby web application using Rack only, but > most people don't as it is too low level. (For the same reason that > most people prefer higher level programming languages over assembly or > C). Rack is designed to be a common HTTP server API for implementors > of Ruby web frameworks (such as Rails). > > Rails is a web framework built on top of Rack, using Rack's Ruby API > to receive HTTP requests and send HTTP responses back. From a > developer perspective this allows you to write a web app using higher > level constructs (controllers, actions and views). From Rails' > perspective this means that Rails works with any HTTP server that has > a Rack interface. > > Aslak > > > > > > > Thank You, > > Uma Mahesh. > > > > > --000e0cd18572daf4da04aac3f974 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank You very much=A0Aslak, Y= our explanation is very clear and I got the clear idea of rack.. Thank you = once again.




--000e0cd18572daf4da04aac3f974--