Displaying 6 results from an estimated 6 matches for "javascript_generator_templates".
2006 Feb 06
1
template choice error (layout.rb)
Hey,
I installed the rjs plugin yesterday and started using it for one set
of views. Today I notice that in an entirely separate
controller/template I''m seeing this error:
TypeError (can''t dup NilClass):
/vendor/plugins/javascript_generator_templates/lib/add_rjs_to_action_controller.rb:41:in
`dup''
/vendor/plugins/javascript_generator_templates/lib/add_rjs_to_action_controller.rb:41:in
`default_template_name''
/vendor/plugins/javascript_generator_templates/lib/add_rjs_to_action_controller.rb:64:in
`candidate_for_layout?&...
2006 Mar 07
12
rjs and partials
I''m trying to update a list, and having a hard time applying visual effects
to the latest element created. Here is what I''m doing.
===========================================
1) Creating an "item" via an action, then rendering the RJS template
2) RJS template looks like this:
page.insert_html :top, ''items'', :partial =>
2005 Dec 21
2
Missing error page templates
...all the debugging information. What could''ve
cause this? This is from the logs:
ActionView::ActionViewError (No rhtml, rxml, rjs or delegate template
found for /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/templates/rescues/template_error.rhtml):
/vendor/plugins/javascript_generator_templates/lib/add_rjs_to_action_view.rb:10:in
`pick_template_extension''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:195:in
`multilingual_old_render_file''
/vendor/plugins/multilingual/lib/multilingual/rails/action_view.rb:15:in
`render_file''
/us...
2006 Jan 30
5
a RJS problem/patch
Hi,
add_rjs_to_action_view.rb of javascript_generator_templates
doesn''t work with setting Content-Type in a controller.
(e.g.) http://wiki.rubyonrails.org/rails/pages/HowtoSetDefaultEncoding
class ApplicationController < ActionController::Base
before_filter :set_charset
def set_charset
@headers["Content-Type"] = "text/html; c...
2006 Jan 11
0
AJAX: link_to_remote problem
...9;'t work either. It results in using the correct url, but the url
parameter seems to be not correct:
TypeError in Account#create
can''t dup NilClass
RAILS_ROOT: C:/Projects/Athena/rails/public/../config/..
Application Trace | Framework Trace | Full Trace
#{RAILS_ROOT}/vendor/plugins/javascript_generator_templates/lib/add_rjs_to_action_controller.rb:41:in
`dup''
the controller contains:
def create
render :layout => false
end
create.rhtml contains:
<em>Hello from Ajax!</em>
new.rhtml contains:
<%= javascript_include_tag :defaults %>
<%= link_to_remote("Upda...
2005 Dec 15
2
Rails 1.0 & RJS Templates
...js templates working and followed Cody''s instructions at
http://www.codyfauser.com/articles/2005/12/02/rails-rjs-templates-plugin
. However, when I try to run ''rake test'' I get the following error:
(in
/Users/jason/projects/workarea/biolexis/trunk/rails/vendor/plugins/javascript_generator_templates)
/opt/local/bin/ruby -Ilib:lib
"/opt/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake_test_loader.rb"
"test/controller/new_render_test.rb"
./test/controller/../abstract_unit.rb:10:in `require'': No such file to
load -- action_controller (LoadError)
from ....