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 (
commit 3d415e2c65b983905981b1bb9411e16b0bddb519
tree 4f11ddd669f076946045357e8a6760395da93797
parent 193162b149cb689dedb70d9af864c106ea28b525 parent 69cfeabc043e00ba4b16b09e8c6d58f7843e1db3
tree 4f11ddd669f076946045357e8a6760395da93797
parent 193162b149cb689dedb70d9af864c106ea28b525 parent 69cfeabc043e00ba4b16b09e8c6d58f7843e1db3
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
CHANGELOG | ||
| |
MIT-LICENSE | Thu Oct 18 04:00:34 -0700 2007 | |
| |
README.rdoc | ||
| |
Rakefile | ||
| |
SPECDOC | ||
| |
garlic_example.rb | ||
| |
init.rb | ||
| |
lib/ | ||
| |
spec/ |
README.rdoc
response_for
response_for (see Ardes::ResponseFor::ClassMethods) allows you to decorate the respond_to block of actions on sublcassed controllers. This works nicely with plugins.ardes.com/doc/resources_controller
Important for rails 2.0.x users
If you are on 2.0.2 or 2.0-stable, you must checkout the 2.0-stable branch of response_for.
Edge users should use the master branch.
Example
class FooController < ApplicationController
def index
@foos = Foo.find(:all)
end
def show
@foo = Foo.find(params[:id])
end
end
# this controller needs to respond_to fbml on index, and
# js, html and xml (templates) on index and show
class SpecialFooController < FooController
response_for :index do |format|
format.fbml { render :inline => turn_into_facebook(@foos) }
end
response_for :index, :show, :types => [:html, :xml, :js]
end
works with rails 2.0-stable and edge
response_for works with rails 2 and edge.
Specs and Coverage
- The SPECDOC lists the specifications
- Coverage is 100% (C2), and the spec suite is quite comprehensive
RSpec is used for testing, so the tests are in spec/ rather than test/ Do rake —tasks for more details.
Continuous Integration
garlic (at github.com/ianwhite/garlic) is used for CI. To run the CI suite have a look at garlic_example.rb









