Changeset 862
- Timestamp:
- 03/06/05 17:27:11 (4 years ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/components.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r855 r862 1 1 *SVN* 2 3 * Added shortcut :id assignment to render_component and friends (before you had to go through :params) #784 [Lucas Carlson] 2 4 3 5 * Fixed that map.connect should convert arguments to strings #780 [Nicholas Seckar] trunk/actionpack/lib/action_controller/components.rb
r780 r862 7 7 # def delegate_action 8 8 # do_other_stuff_before_hello_world 9 # render_component :controller => "greeter", :action => "hello_world" 9 # render_component :controller => "greeter", :action => "hello_world", :params => { "person" => "david" } 10 10 # end 11 11 # end … … 13 13 # class GreeterController < ActionController::Base 14 14 # def hello_world 15 # render_text " Hello World!"15 # render_text "#{@params['person']} says, Hello World!" 16 16 # end 17 17 # end … … 55 55 request_for_component.send( 56 56 :instance_variable_set, :@parameters, 57 (options[:params] || {}).merge({ "controller" => options[:controller], "action" => options[:action] })57 (options[:params] || {}).merge({ "controller" => options[:controller], "action" => options[:action], "id" => options[:id] }) 58 58 ) 59 59 return request_for_component