Displaying 10 results from an estimated 10 matches for "template_handler".
Did you mean:
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/l...
2006 Mar 12
0
ERB and Builder template engines shouldn''t be so heavily wired in ActionView::Base
...s::EngineName with these methods:
self::template_exists?( render_options={} )
self::type # return :rhtml, :rxml, :vcrb, etc.
initialize( action_view )
render( render_options={}, local_assigns={} )
4. Only used template engines will be then registered in environment.rb:
ActionView::Base.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.
@@templa...
2012 Sep 14
1
calling method on base intended to simulate initialize on instances?
...dlers
autoload :ERB, ''action_view/template/handlers/erb''
autoload :Builder, ''action_view/template/handlers/builder''
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...
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 8.10 and/or Rails
1.8.7?
Jeff
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "...
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_...
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 /trun...
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/ge...
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/ac...
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