Displaying 10 results from an estimated 10 matches for "template_handlers".
2009 Jan 20
5
Problem running rake test
...t have expected an instance of Array.
The error occurred while evaluating nil.empty?
from C:/Ruby/lib/ruby/1.8/erb.rb:525:in `compile''
from C:/Ruby/lib/ruby/1.8/erb.rb:692:in `initialize''
from C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_view/template_handlers/erb.rb:51:in `new''
from C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_view/template_handlers/erb.rb:51:in `compile''
from C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_view/template_handler.rb:11:in `call''
from C:/Ruby/li...
2006 Mar 12
0
ERB and Builder template engines shouldn''t be so heavily wired in ActionView::Base
...se.register_template_handler( ''erb'' )
# does: require( "vendor/erb.rb" )
ActionView::Base.register_template_handler( ''view_controller'' )
# does: require( "vendor/view_controller.rb" )
5. Each required file from vendor registers itself into
@@template_handlers.
@@template_handlers[ActionView::Handlers::Erb.type] =
ActionView::Handlers::Erb
@@template_handlers[ActionView::Handlers::ViewController.type] =
ActionView::Handlers::ViewController
6. If a request comes, the ActionView::Base will ask all registered
template handlers (in @@template_handlers), i...
2012 Sep 14
1
calling method on base intended to simulate initialize on instances?
...autoload :Raw, ''action_view/template/handlers/raw''
def self.extended(base)
base.register_default_template_handler :erb, ERB.new
base.register_template_handler :builder, Builder.new
base.register_template_handler :raw, Raw.new
end
@@template_handlers = {}
@@default_template_handlers = nil
def self.extensions
@@template_extensions ||= @@template_handlers.keys
end
def register_default_template_handler(extension, klass)
register_template_handler(extension, klass)
@@default_template_handlers = klass...
2008 Dec 01
2
strange rails error on ubuntu 8.10
Just upgraded from 8.04 to 8.10, which bumped my Ruby version to
1.8.7, and my Rails app (frozen to 2.2.2) gets a strange error on
startup. I can easily reproduce just by running script/about:
$ script/about
/vendor/rails/actionpack/lib/action_view/template_handler.rb:11:in
`initialize'': wrong number of arguments (0 for 1) (ArgumentError)
Anyone else having trouble with Rails on Ubuntu
2009 Apr 04
11
rake aborted! undefined method `empty?' for nil:NilClass
...Execute environment
rake aborted!
undefined method `empty?'' for nil:NilClass
/usr/lib/ruby/1.8/erb.rb:469:in `scan''
/usr/lib/ruby/1.8/erb.rb:525:in `compile''
/usr/lib/ruby/1.8/erb.rb:692:in `initialize''
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/template_handlers/erb.rb:51:in
`new''
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/template_handlers/erb.rb:51:in
`compile''
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/template_handler.rb:11:in
`call''
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_v...
2008 Jun 30
1
Help with form_for
...form_helper.rb:252:in `form_for''
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:
338:in `send''
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:
338:in `execute''
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/
template_handlers/compilable.rb:29:in `send''
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/
template_handlers/compilable.rb:29:in `render''
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/
template.rb:35:in `render''
/usr/lib64/ruby/gems/1.8/gems/actionpack-2....
2007 Dec 17
0
[CruiseControl] RubyOnRails build 8425 failed
The build failed.
CHANGES
-------
Revision 8422 committed by david on 2007-12-16 23:53:45
Add tests for html_escape, and remove an unneeded backslash (closes #10511) [fxn]
M /trunk/actionpack/lib/action_view/template_handlers/erb.rb
A /trunk/actionpack/test/template/erb_util_test.rb
Revision 8423 committed by david on 2007-12-16 23:55:22
Fix doc (closes #10526)
M /trunk/actionpack/lib/action_controller/session/cookie_store.rb
Revision 8424 committed by david on 2007-12-16 23:59:23
Docfix (closes #10493)
M /trunk...
2008 Oct 31
10
Strange dependency error after going Ruby1.8.6, Rails 2.1.0 -> Ruby1.8.7, Rails 2.1.2
...tml46erb''
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/
base.rb:342:in `send''
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/
base.rb:342:in `execute''
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/
template_handlers/compilable.rb:29:in `send''
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/
template_handlers/compilable.rb:29:in `render''
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/
template.rb:35:in `render''
/opt/local/lib/ruby/gem...
2009 May 20
8
ctionView::TemplateError (undefined method `start_form_tag'
...gin47fazer_login46rhtml''
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/base.rb:342:in
`send''
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/base.rb:342:in
`execute''
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/template_handlers/compilable.rb:29:in
`send''
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/template_handlers/compilable.rb:29:in
`render''
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/template.rb:35:in
`render''
/usr/lib64/ruby/gems/1.8/gems/act...
2010 Jul 19
16
Strange Error undefined method `show' for # see no way to debug, suggestions?
I changed fairly much in my app without constant testing ( my bad )
now i get an error which I cannot seem to debug point my finger on.
I have a home controller which just displays a welcome page this had a
index only action.
Whatever controller I try to open i always get above error message
ActionView::TemplateError (undefined method `show'' for