Hallo,

vielleicht kann mir ja jemand weiterhelfen.

Ich versuche in einer Cell-Implementierung einen weiteren Pfad für die 
Templates hinzufügen. Irgendwie funzt das nicht.

Das Template soll aus einer location außerhalb von RAILS_ROOT/app/views kommen.

class ProxyCell < Cell::Base
  
  add_view_path File.join(RAILS_ROOT, 'resources', 'views')
  
  def pull_xml

  end
  
end


Ich erhalte die Fehlermeldung:


undefined method `load!' for #<Pathname:0x1040b8060>


/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `to_proc'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_view/paths.rb:40:in 
`each'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_view/paths.rb:40:in 
`load!'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_view/base.rb:242:in 
`view_paths='
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_view/base.rb:231:in 
`initialize'
/Library/Ruby/Gems/1.8/gems/cells-3.3.0/lib/cells/cell/base.rb:377:in `new'
/Library/Ruby/Gems/1.8/gems/cells-3.3.0/lib/cells/cell/base.rb:377:in 
`setup_action_view'
/Library/Ruby/Gems/1.8/gems/cells-3.3.0/lib/cells/cell/base.rb:336:in 
`render_view_for'
/Library/Ruby/Gems/1.8/gems/cells-3.3.0/lib/cells/cell/base.rb:327:in `render'
/Users/kastner/Documents/rails_git/ltree/app/cells/proxy_cell.rb:8:in `pull_xml'
/Library/Ruby/Gems/1.8/gems/cells-3.3.0/lib/cells/cell/base.rb:268:in `send'
...


Viele Grüße

Michael Kastner
_______________________________________________
rubyonrails-ug mailing list
rubyonrails-ug@headflash.com
http://mailman.headflash.com/listinfo/rubyonrails-ug

Antwort per Email an