Topic: Javascript error

Hi,

I am receiving an error when loading a specific page in my application.  It works fine on local host but not when deployed.  Any advice would be appreciated.

Processing PropertiesController#new (for 69.86.211.169 at 2009-10-24 19:38:21) [GET]
Rendering template within layouts/data_layout
Rendering properties/new

ActionView::TemplateError (wrong number of arguments (1 for 0)) on line #17 of app/views/properties/_fields.html.erb:
14:
15: <div class="ctrlHolder">
16:     <label></label>
17:     <%= add_property_value_link "+ Add Property Value" %>
18: </div>
19:
20: <div class="ctrlHolder">

    app/helpers/properties_helper.rb:5:in `__instance_exec0'
    app/helpers/properties_helper.rb:4:in `add_property_value_link'
    app/views/properties/_fields.html.erb:17
    app/views/properties/new.html.erb:10
    app/views/properties/new.html.erb:8
    app/controllers/properties_controller.rb:35:in `new'
    passenger (2.2.3) lib/phusion_passenger/rack/request_handler.rb:91:in `process_request'
    passenger (2.2.3) lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop'
    passenger (2.2.3) lib/phusion_passenger/railz/application_spawner.rb:376:in `start_request_handler'
    passenger (2.2.3) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application'
    passenger (2.2.3) lib/phusion_passenger/utils.rb:182:in `safe_fork'
    passenger (2.2.3) lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application'
    passenger (2.2.3) lib/phusion_passenger/abstract_server.rb:351:in `__send__'
    passenger (2.2.3) lib/phusion_passenger/abstract_server.rb:351:in `main_loop'
    passenger (2.2.3) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously'
    passenger (2.2.3) lib/phusion_passenger/abstract_server.rb:162:in `start'
    passenger (2.2.3) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
    passenger (2.2.3) lib/phusion_passenger/spawn_manager.rb:261:in `spawn_rails_application'
    passenger (2.2.3) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
    passenger (2.2.3) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
    passenger (2.2.3) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
    passenger (2.2.3) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    passenger (2.2.3) lib/phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application'
    passenger (2.2.3) lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application'
    passenger (2.2.3) lib/phusion_passenger/spawn_manager.rb:286:in `handle_spawn_application'
    passenger (2.2.3) lib/phusion_passenger/abstract_server.rb:351:in `__send__'
    passenger (2.2.3) lib/phusion_passenger/abstract_server.rb:351:in `main_loop'
    passenger (2.2.3) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously'

Rendering /home/sv620/domains/phono-dev.sswl.railsplayground.net/SSWL/releases/20091025002849/public/500.html (500 Internal Server Error)

Thanks,
Jillian

Re: Javascript error

It is trying to evaluate an expression with a variable and/or value that doesn't exist, simply because you have the + sign in the string. My advice is take out the + sign from your string, and you should be good. smile