- How to execute a controller/action in Rails?
- #lib/foo_controller_includes.rb
- module FooControllerIncludes
- def special_edit
- do_some_stuff!
- render :action=>"/full/path/to/file"
- end
- end
- #app/controllers/bar_controller.b
- class BarController < ApplicationController
- include FooControllerIncludes
- def edit
- special_edit
- end
- end