CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 06 Aug 2025 16:57:05 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20081016053857
location: https://web.archive.org/web/20081016053857/https://github.com/sd/embedded-actions/tree
server-timing: captures_list;dur=0.834180, exclusion.robots;dur=0.031460, exclusion.robots.policy;dur=0.012888, esindex;dur=0.015719, cdx.remote;dur=29.684661, LoadShardBlock;dur=557.950109, PetaboxLoader3.datanode;dur=230.105847, PetaboxLoader3.resolve;dur=222.127637
x-app-server: wwwb-app214
x-ts: 302
x-tr: 623
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app214; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 301
server: nginx
date: Wed, 06 Aug 2025 16:57:06 GMT
content-type: text/html; charset=utf-8
content-length: 115
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Thu, 16 Oct 2008 05:38:56 GMT
x-archive-orig-connection: close
x-archive-orig-status: 301 Moved Permanently
location: https://web.archive.org/web/20081016053857/https://github.com/sd/embedded-actions/tree/master
x-archive-orig-x-runtime: 0.20906
x-archive-orig-cache-control: no-cache
x-archive-orig-content-length: 115
cache-control: max-age=1800
memento-datetime: Thu, 16 Oct 2008 05:38:57 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Thu, 16 Oct 2008 05:38:57 GMT", ; rel="memento"; datetime="Thu, 16 Oct 2008 05:38:57 GMT", ; rel="next memento"; datetime="Wed, 24 Dec 2008 07:23:57 GMT", ; rel="last memento"; datetime="Sat, 08 Aug 2009 08:07:56 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_6_20081016003919_crawl109-c/52_6_20081016053726_crawl103.arc.gz
server-timing: captures_list;dur=0.942724, exclusion.robots;dur=0.056980, exclusion.robots.policy;dur=0.037521, esindex;dur=0.018673, cdx.remote;dur=55.016823, LoadShardBlock;dur=363.859670, PetaboxLoader3.datanode;dur=143.186528, PetaboxLoader3.resolve;dur=373.537162, load_resource;dur=209.133171
x-app-server: wwwb-app214
x-ts: 301
x-tr: 660
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Wed, 06 Aug 2025 16:57:07 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Thu, 16 Oct 2008 05:38:57 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 0.84073
x-archive-orig-etag: "6db3105a5ebaf852bb680bed54481f85"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 17560
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Thu, 16 Oct 2008 05:38:57 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Mon, 07 Apr 2008 07:36:19 GMT", ; rel="prev memento"; datetime="Thu, 24 Jul 2008 14:06:40 GMT", ; rel="memento"; datetime="Thu, 16 Oct 2008 05:38:57 GMT", ; rel="next memento"; datetime="Sat, 20 Dec 2008 01:04:39 GMT", ; rel="last memento"; datetime="Sat, 26 Dec 2015 16:18:48 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_6_20081016003919_crawl109-c/52_6_20081016053726_crawl103.arc.gz
server-timing: captures_list;dur=0.504799, exclusion.robots;dur=0.019338, exclusion.robots.policy;dur=0.008872, esindex;dur=0.011753, cdx.remote;dur=18.089781, LoadShardBlock;dur=107.508888, PetaboxLoader3.datanode;dur=99.668626, load_resource;dur=37.385292
x-app-server: wwwb-app214
x-ts: 200
x-tr: 223
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
sd's embedded-actions at master — GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | A Rails plugin that lets you embed actions in your views (with caching and response_to support) |
Homepage: | https://github.com/sd/embedded-actions/wikis/home |
Clone URL: |
git://github.com/sd/embedded-actions.git
Give this clone URL to anyone.
git clone git://github.com/sd/embedded-actions.git
|
name | age | message | |
---|---|---|---|
![]() |
README | Wed Feb 20 13:35:26 -0800 2008 | README for release 1.1.1 [sd] |
![]() |
Rakefile | Mon Oct 08 08:38:21 -0700 2007 | r63@chuao: sd | 2007-10-08 11:35:59 -0400 [sd] |
![]() |
init.rb | Wed Aug 01 13:51:59 -0700 2007 | r56@chuao: sd | 2007-08-01 16:51:37 -0400 [sd] |
![]() |
lib/ | Mon May 19 12:09:29 -0700 2008 | Fixed caching for controllers that inherit from... [sd] |
![]() |
test/ | Sun Jun 01 15:16:05 -0700 2008 | All tests pass on Rails 2.1. Had to fix some te... [sd] |
README
The "embedded actions" plugin ============================= Just like the traditional render :partial, embedded actions allow you to refactor your views and extract presentation logic and templates into separate files. Unlike partials, embedded actions also let you define business logic to be performed before the partial is included. That logic is encapsulated in the already well understood metaphor of an action inside a controller. So a simple call like <%= embed_action :controller => "songs", :action => "top10" %> lets you include an html fragment containing the top 10 songs into any of your pages, regardless of which controller, action or view wants to do the including. Additionally, embedded actions can provide caching of their results (allowing for different parameters) just like page caching, but at the level of html fragments. So your dynamic pages can still be rendered dynamically, but some of the embedded actions can be cached (and expired) independently. Just declare an action as 'cacheable' in a way similar to page caching, by invoking "caches_embedded" with the name of the action to cache. class TestController < ApplicationController caches_embedded :user_list def user_list ... end end Cached fragments can be invalidated with calls to expires_embedded, but you must remember to use the same set of parameters used to embed the cached action in the first place. Additionally, the underlying fragment caching mechanism can be passed an options hash in the following manner: caches_embedded :user_list, :ttl => 60.minutes ------------------------------------------------------------------------------- Copyright (c) 2007 Sebastian Delmont <sd@notso.net> Copyright (c) 2007 StreetEasy / NMD Interactive <https://www.streeteasy.com/> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Sebastian Delmont, nor StreetEasy nor NMD Interactive nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------- CONTRIBUTORS - Sebastian Delmont <sd@notso.net> - Jerret Taylor <jerrett@gmail.com> - Ryan Barber <rfb@skyscraper.nu> - Andreas Simon <asimon@med4you.de> RELEASE HISTORY 1.0 - Oct 23 2007 First widespread release. 1.0.1 - Oct 30 2007 Fixed bug that was causing a "Content-encoding: identity" to leak to all requests. 1.0.2 - Nov 29 2007 Fixed bug (thanks Jerret) that caused caching settings to leak to actions with the same name in other controllers. 1.1 - Dec 4 2007 Passthrough options for fragment caching (Ryan). Support for namespaced controllers in caching (Jerret). Minor bug fixes. 1.1.1 - Feb 20 2008 Allow symbol names for controllers and actions (Andreas) Fixed deprecated 'require_gem' in test environment (Andreas)
This feature is coming soon. Sit tight!