I'm trying to transform a Rails 2.3.14 to 3.1.1 application.
Prototype rails should provide all the lost remote_foo..
But it doesn't work at all for me. It's like if the gem was not enable
anymore.
I installed it, reinstalled it, bundle install/update, add/remove/add gem
into Gemfile, test it as a plugin, everything, but I still have got this
error "undefined method `remote_function' ".

The function seams to be there, into the prototype-rails gem into prototype
helpers file, but my application don't see it, why ? Do you have an idea ?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/1XonGeeKzM4J.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Walter Lee Davis at Nov 11, 2011 at 1:07 pm
    Have a look at the running code in Firebug, and see what the error is reported as. You may have some other 2.3-ism lingering that is causing an error.

    Walter
    On Nov 11, 2011, at 7:45 AM, Capripot wrote:

    I'm trying to transform a Rails 2.3.14 to 3.1.1 application.
    Prototype rails should provide all the lost remote_foo..
    But it doesn't work at all for me. It's like if the gem was not enable anymore.
    I installed it, reinstalled it, bundle install/update, add/remove/add gem into Gemfile, test it as a plugin, everything, but I still have got this error "undefined method `remote_function' ".

    The function seams to be there, into the prototype-rails gem into prototype helpers file, but my application don't see it, why ? Do you have an idea ?

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/1XonGeeKzM4J.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Capripot at Nov 11, 2011 at 1:12 pm
    Okay, but I get a NoMethodError, so I don't see my own view, just the error
    view.
    And I don't see any prototype gem referene onto the trace ..

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/EjgssRHq4Y8J.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Walter Lee Davis at Nov 11, 2011 at 4:02 pm
    Then you have much larger issues than Prototype. Can you post the stack trace that you see on the error page in its entirety?

    Walter
    On Nov 11, 2011, at 8:12 AM, Capripot wrote:

    Okay, but I get a NoMethodError, so I don't see my own view, just the error view.
    And I don't see any prototype gem referene onto the trace ..

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/EjgssRHq4Y8J.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Capripot at Nov 11, 2011 at 4:30 pm
    I think it's completly relative to the gem prototype-rails. But I don't
    understand where is the problem. I added the gem and bundled it,
    Here is the complete trace page :
    -------------------------------------------------------------------------------
    NoMethodError in Conformity_certs#edit

    Showing
    C:/Sites/website_server_dev/app/views/conformity_certs/_customer_choice.html.erb
    where line #4 raised:

    undefined method `remote_function' for #<#<Class:0x492d0e0>:0x494aee8>

    Extracted source (around line #4):

    1: <%= collection_select :conformity_cert, :customer_id, @customers, :id,
    :name,
    2: {:prompt => _("Select a customer"), :selected =>
    params[:customer_id].to_i},
    3: {:onchange => "#{remote_function(:url => {:action =>
    "update_customer_choice"},
    4: :with => "$H({'customer_id':value}).toQueryString()")}"} %>
    <%= add_link_to( {:controller => :customers, :action => :new}, :mini =>
    true) %>
    5: <% if(@countries)%>
    6: </p>
    7: <p><%= label_tag :invoice_address %><%= collection_select
    :conformity_cert, :customer_country_id, @countries, :id, :name,

    Trace of template inclusion: app/views/conformity_certs/edit.html.erb

    Rails.root: C:/Sites/website_server_dev
    Application Trace | Framework Trace | Full Trace

    app/views/conformity_certs/_customer_choice.html.erb:4:in
    `_app_views_conformity_certs__customer_choice_html_erb___687038594_55190544'
    actionpack (3.1.1) lib/action_view/template.rb:144:in `block in render'
    activesupport (3.1.1) lib/active_support/notifications.rb:55:in `instrument'
    actionpack (3.1.1) lib/action_view/template.rb:142:in `render'
    actionpack (3.1.1) lib/action_view/renderer/partial_renderer.rb:256:in
    `render_partial'
    actionpack (3.1.1) lib/action_view/renderer/partial_renderer.rb:228:in
    `block (2 levels) in render'
    actionpack (3.1.1) lib/action_view/renderer/abstract_renderer.rb:33:in
    `block in instrument'
    activesupport (3.1.1) lib/active_support/notifications.rb:53:in `block in
    instrument'
    activesupport (3.1.1)
    lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    activesupport (3.1.1) lib/active_support/notifications.rb:53:in `instrument'
    actionpack (3.1.1) lib/action_view/renderer/abstract_renderer.rb:33:in
    `instrument'
    actionpack (3.1.1) lib/action_view/renderer/partial_renderer.rb:227:in
    `block in render'
    actionpack (3.1.1) lib/action_view/renderer/abstract_renderer.rb:22:in
    `wrap_formats'
    actionpack (3.1.1) lib/action_view/renderer/partial_renderer.rb:219:in
    `render'
    actionpack (3.1.1) lib/action_view/renderer/renderer.rb:41:in
    `render_partial'
    actionpack (3.1.1) lib/action_view/renderer/renderer.rb:15:in `render'
    actionpack (3.1.1) lib/action_view/helpers/rendering_helper.rb:24:in
    `render'
    app/views/conformity_certs/edit.html.erb:15:in `block in
    _app_views_conformity_certs_edit_html_erb__433957859_38424312'
    actionpack (3.1.1) lib/action_view/helpers/capture_helper.rb:40:in `block
    in capture'
    actionpack (3.1.1) lib/action_view/helpers/capture_helper.rb:187:in
    `with_output_buffer'
    actionpack (3.1.1) lib/action_view/helpers/capture_helper.rb:40:in `capture'
    actionpack (3.1.1) lib/action_view/helpers/form_helper.rb:590:in
    `fields_for'
    actionpack (3.1.1) lib/action_view/helpers/form_helper.rb:373:in `form_for'
    config/initializers/form_tag_redirect.rb:6:in `form_for'
    app/views/conformity_certs/edit.html.erb:9:in
    `_app_views_conformity_certs_edit_html_erb__433957859_38424312'
    actionpack (3.1.1) lib/action_view/template.rb:144:in `block in render'
    activesupport (3.1.1) lib/active_support/notifications.rb:55:in `instrument'
    actionpack (3.1.1) lib/action_view/template.rb:142:in `render'
    actionpack (3.1.1) lib/action_view/renderer/template_renderer.rb:40:in
    `block (2 levels) in render_template'
    actionpack (3.1.1) lib/action_view/renderer/abstract_renderer.rb:33:in
    `block in instrument'
    activesupport (3.1.1) lib/active_support/notifications.rb:53:in `block in
    instrument'
    activesupport (3.1.1)
    lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    activesupport (3.1.1) lib/active_support/notifications.rb:53:in `instrument'
    actionpack (3.1.1) lib/action_view/renderer/abstract_renderer.rb:33:in
    `instrument'
    actionpack (3.1.1) lib/action_view/renderer/template_renderer.rb:39:in
    `block in render_template'
    actionpack (3.1.1) lib/action_view/renderer/template_renderer.rb:47:in
    `render_with_layout'
    actionpack (3.1.1) lib/action_view/renderer/template_renderer.rb:38:in
    `render_template'
    actionpack (3.1.1) lib/action_view/renderer/template_renderer.rb:12:in
    `block in render'
    actionpack (3.1.1) lib/action_view/renderer/abstract_renderer.rb:22:in
    `wrap_formats'
    actionpack (3.1.1) lib/action_view/renderer/template_renderer.rb:9:in
    `render'
    actionpack (3.1.1) lib/action_view/renderer/renderer.rb:36:in
    `render_template'
    actionpack (3.1.1) lib/action_view/renderer/renderer.rb:17:in `render'
    actionpack (3.1.1) lib/abstract_controller/rendering.rb:120:in
    `_render_template'
    actionpack (3.1.1) lib/action_controller/metal/streaming.rb:250:in
    `_render_template'
    actionpack (3.1.1) lib/abstract_controller/rendering.rb:114:in
    `render_to_body'
    actionpack (3.1.1) lib/action_controller/metal/renderers.rb:30:in
    `render_to_body'
    actionpack (3.1.1) lib/action_controller/metal/compatibility.rb:43:in
    `render_to_body'
    actionpack (3.1.1) lib/abstract_controller/rendering.rb:99:in `render'
    actionpack (3.1.1) lib/action_controller/metal/rendering.rb:16:in `render'
    actionpack (3.1.1) lib/action_controller/metal/instrumentation.rb:40:in
    `block (2 levels) in render'
    activesupport (3.1.1) lib/active_support/core_ext/benchmark.rb:5:in `block
    in ms'
    C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/benchmark.rb:310:in `realtime'
    activesupport (3.1.1) lib/active_support/core_ext/benchmark.rb:5:in `ms'
    actionpack (3.1.1) lib/action_controller/metal/instrumentation.rb:40:in
    `block in render'
    actionpack (3.1.1) lib/action_controller/metal/instrumentation.rb:78:in
    `cleanup_view_runtime'
    activerecord (3.1.1) lib/active_record/railties/controller_runtime.rb:24:in
    `cleanup_view_runtime'
    actionpack (3.1.1) lib/action_controller/metal/instrumentation.rb:39:in
    `render'
    app/controllers/conformity_certs_controller.rb:237:in `block (2 levels) in
    edit'
    actionpack (3.1.1) lib/action_controller/metal/mime_responds.rb:195:in
    `call'
    actionpack (3.1.1) lib/action_controller/metal/mime_responds.rb:195:in
    `respond_to'
    app/controllers/conformity_certs_controller.rb:236:in `edit'
    actionpack (3.1.1) lib/action_controller/metal/implicit_render.rb:4:in
    `send_action'
    actionpack (3.1.1) lib/abstract_controller/base.rb:167:in `process_action'
    actionpack (3.1.1) lib/action_controller/metal/rendering.rb:10:in
    `process_action'
    actionpack (3.1.1) lib/abstract_controller/callbacks.rb:18:in `block in
    process_action'
    activesupport (3.1.1) lib/active_support/callbacks.rb:434:in
    `_run__1042219637__process_action__1021333359__callbacks'
    activesupport (3.1.1) lib/active_support/callbacks.rb:386:in
    `_run_process_action_callbacks'
    activesupport (3.1.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
    actionpack (3.1.1) lib/abstract_controller/callbacks.rb:17:in
    `process_action'
    actionpack (3.1.1) lib/action_controller/metal/rescue.rb:17:in
    `process_action'
    actionpack (3.1.1) lib/action_controller/metal/instrumentation.rb:30:in
    `block in process_action'
    activesupport (3.1.1) lib/active_support/notifications.rb:53:in `block in
    instrument'
    activesupport (3.1.1)
    lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    activesupport (3.1.1) lib/active_support/notifications.rb:53:in `instrument'
    actionpack (3.1.1) lib/action_controller/metal/instrumentation.rb:29:in
    `process_action'
    actionpack (3.1.1) lib/action_controller/metal/params_wrapper.rb:201:in
    `process_action'
    activerecord (3.1.1) lib/active_record/railties/controller_runtime.rb:18:in
    `process_action'
    actionpack (3.1.1) lib/abstract_controller/base.rb:121:in `process'
    actionpack (3.1.1) lib/abstract_controller/rendering.rb:45:in `process'
    actionpack (3.1.1) lib/action_controller/metal.rb:193:in `dispatch'
    actionpack (3.1.1) lib/action_controller/metal/rack_delegation.rb:14:in
    `dispatch'
    actionpack (3.1.1) lib/action_controller/metal.rb:236:in `block in action'
    actionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:65:in `call'
    actionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
    actionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:29:in `call'
    rack-mount (0.8.3) lib/rack/mount/route_set.rb:152:in `block in call'
    rack-mount (0.8.3) lib/rack/mount/code_generation.rb:96:in `block in
    recognize'
    rack-mount (0.8.3) lib/rack/mount/code_generation.rb:75:in `optimized_each'
    rack-mount (0.8.3) lib/rack/mount/code_generation.rb:95:in `recognize'
    rack-mount (0.8.3) lib/rack/mount/route_set.rb:141:in `call'
    actionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:532:in `call'
    actionpack (3.1.1)
    lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
    rack (1.3.5) lib/rack/etag.rb:23:in `call'
    rack (1.3.5) lib/rack/conditionalget.rb:25:in `call'
    actionpack (3.1.1) lib/action_dispatch/middleware/head.rb:14:in `call'
    actionpack (3.1.1) lib/action_dispatch/middleware/params_parser.rb:21:in
    `call'
    actionpack (3.1.1) lib/action_dispatch/middleware/flash.rb:243:in `call'
    rack (1.3.5) lib/rack/session/abstract/id.rb:195:in `context'
    rack (1.3.5) lib/rack/session/abstract/id.rb:190:in `call'
    actionpack (3.1.1) lib/action_dispatch/middleware/cookies.rb:331:in `call'
    activerecord (3.1.1) lib/active_record/query_cache.rb:62:in `call'
    activerecord (3.1.1)
    lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in
    `call'
    actionpack (3.1.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block
    in call'
    activesupport (3.1.1) lib/active_support/callbacks.rb:392:in
    `_run_call_callbacks'
    activesupport (3.1.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
    actionpack (3.1.1) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
    actionpack (3.1.1) lib/action_dispatch/middleware/reloader.rb:68:in `call'
    rack (1.3.5) lib/rack/sendfile.rb:101:in `call'
    actionpack (3.1.1) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
    actionpack (3.1.1) lib/action_dispatch/middleware/show_exceptions.rb:47:in
    `call'
    railties (3.1.1) lib/rails/rack/logger.rb:13:in `call'
    rack (1.3.5) lib/rack/methodoverride.rb:24:in `call'
    rack (1.3.5) lib/rack/runtime.rb:17:in `call'
    activesupport (3.1.1)
    lib/active_support/cache/strategy/local_cache.rb:72:in `call'
    rack (1.3.5) lib/rack/lock.rb:15:in `call'
    actionpack (3.1.1) lib/action_dispatch/middleware/static.rb:53:in `call'
    railties (3.1.1) lib/rails/engine.rb:456:in `call'
    railties (3.1.1) lib/rails/rack/content_length.rb:16:in `call'
    railties (3.1.1) lib/rails/rack/log_tailer.rb:14:in `call'
    rack (1.3.5) lib/rack/handler/webrick.rb:59:in `service'
    C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/webrick/httpserver.rb:111:in
    `service'
    C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
    C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/webrick/server.rb:183:in `block
    in start_thread'

    Request

    Parameters:

    {"id"=>"4",
    "customer_id"=>1,
    "customer_country_id"=>4,
    "invoice_address_id"=>1}

    Show session dump

    Show env dump
    Response

    Headers:

    None


    -------------------------------------------------------------------------------
    This are the rails properties info

    Ruby version 1.9.2 (i386-mingw32)
    RubyGems version 1.8.11
    Rack version 1.3
    Rails version 3.1.1
    Active Record version 3.1.1
    Action Pack version 3.1.1
    Active Resource version 3.1.1
    Action Mailer version 3.1.1
    Active Support version 3.1.1
    Middleware

    ActionDispatch::Static
    Rack::Lock
    #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x13d8b18>
    Rack::Runtime
    Rack::MethodOverride
    Rails::Rack::Logger
    ActionDispatch::ShowExceptions
    ActionDispatch::RemoteIp
    Rack::Sendfile
    ActionDispatch::Reloader
    ActionDispatch::Callbacks
    ActiveRecord::ConnectionAdapters::ConnectionManagement
    ActiveRecord::QueryCache
    ActionDispatch::Cookies
    ActiveRecord::SessionStore
    ActionDispatch::Flash
    ActionDispatch::ParamsParser
    ActionDispatch::Head
    Rack::ConditionalGet
    Rack::ETag
    ActionDispatch::BestStandardsSupport

    Application root C:/Sites/website_server_dev
    Environment development
    Database adapter mysql2
    Database schema version 20111025091922
    -------------------------------------------------------------------------------
    Here is the bundle list :

    Using rake (0.9.2.2)
    Using Ascii85 (1.0.1)
    Using multi_json (1.0.3)
    Using activesupport (3.1.1)
    Using builder (3.0.0)
    Using i18n (0.6.0)
    Using activemodel (3.1.1)
    Using erubis (2.7.0)
    Using rack (1.3.5)
    Using rack-cache (1.1)
    Using rack-mount (0.8.3)
    Using rack-test (0.6.1)
    Using hike (1.2.1)
    Using tilt (1.3.3)
    Using sprockets (2.0.3)
    Using actionpack (3.1.1)
    Using mime-types (1.17.2)
    Using polyglot (0.3.3)
    Using treetop (1.4.10)
    Using mail (2.3.0)
    Using actionmailer (3.1.1)
    Using arel (2.2.1)
    Using tzinfo (0.3.31)
    Using activerecord (3.1.1)
    Using activeresource (3.1.1)
    Using ansi (1.4.1)
    Using bundler (1.0.21)
    Using coffee-script-source (1.1.3)
    Using execjs (1.2.9)
    Using coffee-script (2.2.0)
    Using rack-ssl (1.3.2)
    Using json (1.6.1)
    Using rdoc (3.11)
    Using thor (0.14.6)
    Using railties (3.1.1)
    Using coffee-rails (3.1.1)
    Using mysql2 (0.3.10)
    Using pdf-reader (0.10.1)
    Using ttfunk (1.0.3)
    Using prawn (0.12.0)
    Using rails (3.1.1)
    Using prototype-rails (3.1.0)
    Using sass (3.1.10)
    Using sass-rails (3.1.4)
    Using turn (0.8.3)
    Using uglifier (1.0.4)

    2011/11/11 Walter Lee Davis <waltd@wdstudio.com>
    Then you have much larger issues than Prototype. Can you post the stack
    trace that you see on the error page in its entirety?

    Walter
    On Nov 11, 2011, at 8:12 AM, Capripot wrote:

    Okay, but I get a NoMethodError, so I don't see my own view, just the
    error view.
    And I don't see any prototype gem referene onto the trace ..

    --
    You received this message because you are subscribed to the Google
    Groups "Ruby on Rails: Talk" group.
    To view this discussion on the web visit
    https://groups.google.com/d/msg/rubyonrails-talk/-/EjgssRHq4Y8J.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to
    rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/rubyonrails-talk?hl=en.

    --
    You received this message because you are subscribed to the Google Groups
    "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to
    rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/rubyonrails-talk?hl=en.

    --
    Capripot / www.capripot.com / www.capripot.info

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedNov 11, '11 at 1:03p
activeNov 11, '11 at 4:30p
posts5
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Capripot: 3 posts Walter Lee Davis: 2 posts

People

Translate

site design / logo © 2021 Grokbase