Added client side validations. Fixed shared sync.

This commit is contained in:
benni 2011-05-19 22:35:13 +02:00
parent 013637a4fc
commit 3f133bb8c3
8 changed files with 413 additions and 7 deletions

View file

@ -1,4 +1,4 @@
= simple_form_for [@supplier, @article], :remote => true do |f|
= simple_form_for [@supplier, @article], :validate => true, :remote => true do |f|
= f.input :availability
= f.input :name
= f.input :origin

View file

@ -10,7 +10,7 @@
= stylesheet_link_tag 'ie_hacks'
<![endif]-->
= javascript_include_tag 'jquery.min', 'jquery-ui.min', 'jquery_ujs', 'jquery.tokeninput', 'jquery.observe_field',
'application', 'ordering', 'jquery.fancybox-1.3.4.pack', :cache => 'all_cached'
'rails.validations', 'application', 'ordering', 'jquery.fancybox-1.3.4.pack', :cache => 'all_cached'
= csrf_meta_tag
= yield(:head)
%body