Displaying 5 results from an estimated 5 matches for "javascript_helper".
2007 Dec 24
2
backgroundrb script crashing on startup
...om /usr/lib/ruby/site_ruby/1.8/active_support/dependencies.rb:343:in
`new_constants_in''
from /usr/lib/ruby/site_ruby/1.8/active_support/dependencies.rb:496:in
`require''
from /var/www/apps/rpg/releases/20071224034514/vendor/rails/actionpack/lib/action_view/helpers/javascript_helper.rb:2
... 44 levels...
from /var/www/apps/rpg/releases/20071224034514/vendor/plugins/backgroundrb/server/master_worker.rb:156:in
`load_rails_env''
from /var/www/apps/rpg/releases/20071224034514/vendor/plugins/backgroundrb/server/master_worker.rb:143:in
`initialize...
2007 Dec 20
3
How-to spec this helper method?...
Hey gang,
I have this dead-simple method defined in a helper:
def add_category_link(name)
link_to_function name do |page|
page.insert_html :bottom, :categories, :partial =>
''category'', :object => Category.new
end
end
Where, and mostly how, would I spec this? I haven''t been able to find
how to stub the rjs in a helper spec, so
2011 Jan 22
1
uninitialized constant ActionView::Helpers::TagHelper::ERB (NameError)
...from
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require''
from
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require''
from
C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-3.0.3/lib/action_view/helpers/javascript_helper.rb:1
from
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require''
from
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require''
from
C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-3.0.3/lib/action_view/hel...
2005 Nov 25
0
Using link_to_remote/remote_function outside of a Controller
...#####################################
NoMethodError in Init_test#index
undefined method `url_for'' for #<Dropdown:0xe431a8>
RAILS_ROOT: .
Application Trace | Framework Trace | Full Trace
#{RAILS_ROOT}bla/bla/.../Ruby/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action_view/helpers/javascript_helper.rb:279:in
`remote_function''
#{RAILS_ROOT}/app/controllers/dropdown.rb:24:in `get_html''
#{RAILS_ROOT}/app/controllers/init_test_controller.rb:26:in `index''
#{RAILS_ROOT}/app/controllers/init_test_controller.rb:16:in `index''
......
##############################...
2009 Feb 25
9
local variables in partials lead to NameError
I know I must be doing something dumb, but I can''t seem to send a
local variable to my partial. The below code leads to the following
error:
NameError in Residential_listings#new
undefined local variable or method `foo'' for #<ActionView::Base:
0x3fb53f8>
I am trying to call the variable ''foo'' in a partial called
_attachment.html.erb, which is nested in