search for: prototype_help

Displaying 20 results from an estimated 26 matches for "prototype_help".

Did you mean: prototype_helper
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
2007 Oct 23
2
to_json inconsistency?
...oders/ hash.rb:12:in `to_json'' vendor/rails/activesupport/lib/active_support/core_ext/object/ misc.rb:28:in `returning'' vendor/rails/activesupport/lib/active_support/json/encoders/ hash.rb:11:in `to_json'' vendor/rails/actionpack/lib/action_view/helpers/ prototype_helper.rb:698:in `javascript_object_for'' vendor/rails/actionpack/lib/action_view/helpers/ prototype_helper.rb:703:in `arguments_for_call'' vendor/rails/actionpack/lib/action_view/helpers/ prototype_helper.rb:703:in `map'' vendor/rails/actionpack/lib/action_view/...
2006 Jun 07
2
How to send post data with link_to_remote?
...action => ''position_ajax'', :id => upload.id }, :method => ''post'', :postBody => ''amount=-1'' But no dice. I looked at the source for <a href="http://dev.rubyonrails.org/browser/trunk/actionpack/lib/action_view/helpers/prototype_helper.rb">prototype_helper.rb</a> and it looks like postBody is not in the supported options hash. Or is the idea that I create a dummy form and associate the link_to_remote with that? -- Posted via http://www.ruby-forum.com/.
2009 Sep 10
1
undefined method `protect_against_forgery?'
...} } there is a error as following: undefined method `protect_against_forgery?'' for #<Node:0xb66986b8> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/ helpers/prototype_helper.rb:1059:in `options_for_ajax'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/ helpers/prototype_helper.rb:449:in `remote_function'' /home/sdr/workspace/sp/vendor/plugins/tree/lib/node.rb:79:in `internal_link_to_remote'' /home/sdr/workspace/sp/vendor/pl...
2011 Jul 23
0
Rendering of Javascript updates with Rails > 2.1
...@template variable is nil. /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.12/lib/active_support/ whiny_nil.rb:52:in `method_missing'': undefined method `with_output_buffer'' for nil:NilClass (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_view/ helpers/prototype_helper.rb:577:in `initialize'' from /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_view/ helpers/prototype_helper.rb:1029:in `new'' from /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_view/ helpers/prototype_helper.rb:1029:in `update_page'' from /usr/lib/ru...
2008 May 13
0
Problem geting web interface to work
...:in `method_missing'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/partials.rb:71:in `render_partial_collection'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:285:in `render'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb:597:in `render'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb:459:in `replace_html'' #{RAILS_ROOT}/app/views/projects/index_js.rjs:1:in `__bind_1210688700_187000'' #{RAILS_ROOT}/app/views/projects/index_js.rjs:0:in `__bin...
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
2006 Apr 14
1
rake test errors
.../ session/active_record_store.rb:129: warning: private attribute? /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/ session/active_record_store.rb:179: warning: method redefined; discarding old connection /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/helpers/ prototype_helper.rb:640: warning: ambiguous first argument; put parentheses or even spaces /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/helpers/ prototype_helper.rb:873: warning: `*'' interpreted as argument prefix /usr/lib/ruby/gems/1.8/gems/actionmailer-1.2.1/lib/action_mailer/vendor...
2007 Dec 24
2
backgroundrb script crashing on startup
...ng_constant'': uninitialized constant ActionView::Helpers::BasicObject (NameError) from /usr/lib/ruby/site_ruby/1.8/active_support/dependencies.rb:453:in `const_missing'' from /var/www/apps/rpg/releases/20071224034514/vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb:1068 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from /usr/lib/ruby/site_ruby/1.8/active_support/dependencies.rb:496:in `require...
2009 Feb 09
0
submit_to_remote change from 2.1 to 2.2 now gives wrong number of arguments
...:html => {:class => ''submit''} ) %> was working totally fine under 2.1.1, it throws wrong number of arguments (3 for 2) on 2.2.2 submit_to_remote on 2.1.1 was # File vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb, line 412 412: def submit_to_remote(name, value, options = {}) 413: options[:with] ||= ''Form.serialize(this.form)'' 414: 415: options[:html] ||= {} 416: options[:html][:type] = ''button'' 417: options[:html][:onclick] =...
2008 Jul 23
0
Link_to_remote object missing
.../usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/ helpers/url_helper.rb:76:in `send'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/ helpers/url_helper.rb:76:in `url_for'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/ helpers/prototype_helper.rb:461:in `remote_function'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/ helpers/prototype_helper.rb:255:in `link_to_remote'' app/views/projects/_contributors.html.erb:4:in `_run_erb_47app47views47projects47_contributors46html46erb'' changing...
2008 May 24
1
link_to_remote, image_tag, mouseover is this possible?
...vendor/rails/actionpack/lib/action_controller/base.rb:616:in `url_for'' vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb:76:in `send'' vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb:76:in `url_for'' vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb:461:in `remote_function'' vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb:255:in `link_to_remote'' app/views/store/show.rhtml:24:in `_run_erb_47app47views47store47show46rhtml'' app/views/store/show.rhtml:17:in `each'' app/views/store/show.rht...
2006 Jun 02
0
Warning messages after upgraded from rails 1.0 to 1.1
...roller/session/active_record_store.rb:129: warning: private attribute? /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session/active_record_store.rb:179: warning: method redefined; discarding old connection /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/helpers/prototype_helper.rb:640: warning: ambiguous first argument; put parentheses or even spaces /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/helpers/prototype_helper.rb:873: warning: `*'' interpreted as argument prefix /usr/lib/ruby/gems/1.8/gems/actionmailer-1.2.1/lib/action_mailer/vendor/t...
2006 Nov 04
0
rake db:migrate is semi-broken
...sion/active_record_store.rb:129: warning: private attribute? /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session/active_record_store.rb:179: warning: method redefined; discarding old connection /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/prototype_helper.rb:641: warning: ambiguous first argument; put parentheses or even spaces /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/prototype_helper.rb:874: warning: `*'' interpreted as argument prefix /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.2.5/lib/action_maile...
2007 Sep 04
7
1.05 to 1.08
Hi We are looking at moving a project over from 1.05 to 1.08 but have a problem with some of our helper specs They work fine in 1.05 but error in 1.08 and it is the calls to route helper methods that seems to be the problem. I did some playing around .. because the code being tested is reasonably large etc ... but this sample (using the peepcode app) seems to boil down the problem
2006 Apr 03
6
problems with Rails 1.1 observe_field :with serialized
I''d like to use observe_field to watch a field, and then when it changes send the entire form to the server. I had been using <%= observe_field ''entity_name_''+@account.id.to_s, :frequency => 0.5, :update => ''auto_complete_''+@account.id.to_s, :url => { :controller => ''committees'', :action=>
2006 May 04
0
undefined method `first''
Hi guys, need help, we were trying to load the prototype helpers but we are getting this particular error: undefined method `first'' for :prototype_helper:Symbol What is the ''first'' method? thanks, Bing -- Posted via http://www.ruby-forum.com/.
2006 Aug 04
0
Rake migrate errors, but it still works
...g: method redefined; discarding old allow_concurrency= /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/connection_adapters/sqlserver_adapter.rb:456: warning: method redefined; discarding old remove_column (snip) /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/helpers/prototype_helper.rb:873: warning: `*'' interpreted as argument prefix /usr/lib/ruby/gems/1.8/gems/actionmailer-1.2.3/lib/action_mailer/vendor/tmail/facade.rb:486: warning: method redefined; discarding old create_reply /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.4/lib/action_web_service/protocol/xmlrp...
2006 Feb 08
5
RJS
I am playing with the new .rjs stuff in edge rails. I am doing stuff like : page.replace_html ''scoops_tot'', @scoops.size 1. I want to add my own javascript functions to the page object. Is it possible and how ? 2. I am trying to update several fields, but i would like a to have a dekay between the updates : @anoclicks.each{|aclick| page.replace_html
2008 Jun 19
1
How to run unit tests for Rails
...39; interpreted as argument prefix /u/liangl/ruby/JRUBY103/unit_test/rails-1.2.6/railties/./test/../../ actionpack/lib/action_view/base.rb:159 warning: `*'' interpreted as argument prefix /u/liangl/ruby/JRUBY103/unit_test/rails-1.2.6/railties/./test/../../ actionpack/lib/action_view/helpers/prototype_helper.rb:862 warning: `*'' interpreted as argument prefix /u/liangl/ruby/JRUBY103/lib/ruby/1.8/net/smtp.rb:165 warning: global variable `$;'' not initialized /u/liangl/ruby/JRUBY103/unit_test/rails-1.2.6/railties/./test/../../ actionpack/lib/../../activesupport/lib/active_support/depend...