> And, Rails 2.3RC1 is out.
render_component is gone in Rails 2.3. The suggested replacement
plugin
http://github.com/rails/render_component/tree/master
appears to be, err, lightly tested.
I had to make the attached changes to get rid of (some of) the 500s.
There are also errors in edit_associated of the form:
ActionController::InvalidAuthenticityToken
(ActionController::InvalidAuthenticityToken):
actionpack (2.3.0) lib/action_controller/
request_forgery_protection.rb:79:in `verify_authenticity_token'
I'm running a Rails course in 10 days and it looks like I will not be
able to introduce AS.
Gruesse, Carsten
diff -u /Users/cabo/tmp/d1/demo1/vendor/plugins/render_component/lib/
components.rb\~ /Users/cabo/tmp/d1/demo1/vendor/plugins/
render_component/lib/components.rb
--- /Users/cabo/tmp/d1/demo1/vendor/plugins/render_component/lib/
components.rb~ 2009-02-04 18:37:16.000000000 +0100
+++ /Users/cabo/tmp/d1/demo1/vendor/plugins/render_component/lib/
components.rb 2009-02-04 18:46:15.000000000 +0100
@@ -10,7 +10,7 @@
attr_accessor :parent_controller
alias_method_chain :process_cleanup, :render_component
- alias_method_chain :set_session_options, :render_component
+# alias_method_chain :set_session_options, :render_component
alias_method_chain :flash, :render_component
alias_method_chain :assign_shortcuts, :render_component
alias_method_chain :send_response, :render_component
@@ -134,9 +134,9 @@
end
def assign_shortcuts_with_render_component(request, response)
- assign_shortcuts_without_flash(request, response)
+ assign_shortcuts_without_render_component(request, response)
flash(:refresh)
flash.sweep if @_session && !component_request?
end
end
-end
\ No newline at end of file
+end
Diff finished. Wed Feb 4 18:49:12 2009
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---