Ajax not defined

This is my code and I am trying to call remote function when somebody
click on add button after selecting something from select_tag. Please
tell me where I am wrong ? I am getting following error: Ajax not
defined.

<%= select_tag ‘available_line_id[]’,options_for_select(customers),{:id
=> ‘available_line_id’,:multiple => true, :size => 13, :style => ‘width:
225px;’} %>

Thanks,

On Mar 23, 12:52 pm, Intern ruby [email protected]
wrote:

This is my code and I am trying to call remote function when somebody
click on add button after selecting something from select_tag. Please
tell me where I am wrong ? I am getting following error: Ajax not
defined.

Probably means that your page doesn’t load the prototype javascript
library (which is the thing that adds the Ajax object). See
javascript_include_tag

Fred

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs