David Genord II
2010-Jun-18 19:49 UTC
[PATCH] form_for without :html and with :remote causes an error
If you run form_for(@post, :remote => true) {|f| ... } you will get "ActionView::Template::Error (You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occurred while evaluating nil.[]=)" My patch fixes this error. https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4902-patch-form_for-without-html-and-with-remote-should-not-error Any comments? David Genord II -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Seemingly Similar Threads
- form_tag and form_for cause #protect_from_forgery errors
- Using form_for and has_many associations with a controller in its own subdirectory
- Patch to fix docs for auto_link
- Problems with form_for, STI, and polymorphic routing
- [PATCH] option_groups_from_collection_for_select should produce an HTML-safe string