ruby on rails 3.2 - Issue with simple_form validation in fancybox -


i using simple_form inside fancybox.

if not using fancybox, able google's location autocomplete , simple_form validations using(validation true).

this things not working inside fancybox.

using fancybox2-rails (0.2.4)

  <%= simple_form_for @hotlist, :validate => true, :html => {:multipart => true, name: 'hotlist_resume'} |f| %>     <%= f.input :name, placeholder: 'full name' %>     <%= f.input :email, as: :email, placeholder: 'enter valid email address' %>     <%= f.input :phone, input_html: {type: 'text'}, required: false %>     <%= f.input :current_location %> <% end %> 

without fancybox:

<%= link_to 'create hotlist resume', new_hotlist_resume_path, class: 'btn btn-inverse', style: 'font-weight: normal;' %> 

withfancybox

    <%= link_to 'create hotlist resume', new_hotlist_resume_path, class: 'btn btn-inverse fancybox fancybox.ajax', style: 'font-weight: normal;' %> 

model validation

validates_presence_of :name, :current_location, :email, :phone 


Comments