I've overwritten the method to NOT return nil in any case. However the error seems not to be in those calls. It's more in blocks or something. See below:
Showing app/views/layouts/_header.html.erb where line #4 raised: 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.<< Extracted source (around line #4): 1: <div id="innerHeader"> 2: <div id="innerLogo"></div> 3: <div id="search" class="overflow"> 4: <% form_tag(search_places_path, :method => :get) do -%> 5: <% with_options(:scope => [:form, :search_place]) do |i| -%> 6: <div class="left"> 7: <div class="left halfMarginRight"> Trace of template inclusion: app/views/layouts/site.html.erb RAILS_ROOT: /Users/joost/Workspace/project Application Trace | Framework Trace | Full Trace /Users/joost/.gem/ruby/1.8/gems/actionpack-2.3.0/lib/action_view/ helpers/text_helper.rb:32:in `concat' /Users/joost/.gem/ruby/1.8/gems/actionpack-2.3.0/lib/action_view/ helpers/form_tag_helper.rb:461:in `form_tag_in_block' /Users/joost/.gem/ruby/1.8/gems/actionpack-2.3.0/lib/action_view/ helpers/form_tag_helper.rb:39:in `form_tag' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

