bcardarella/client_side_validations — Issue #196: How to troubleshoot validations not working in a view?
Author: dcb-ror
Created: 2011-10-10 03:29:06+00:00
State: open

Hi, I'm trying to deal with a odd issue, my client_side_validations seems to have stopped working. The gem still works fine on my _post_form partial but in my edit_account view nothing is working, that means I'd have everything installed correctly right?

I've tried to look around at everything but I can't figure out what's wrong. Can I get some advice on how to go about troubleshooting this? I really appreciate any help. Thanks.

This is my edit_account.html.erb

```

Edit <%= resource_name.to_s.humanize %>

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }, :html => {:multipart => true}, :validate => true) do |f| %>
<%= devise_error_messages! %>

User Info

<%= f.label :email %>

<%= f.text_field :email %>

<%= f.label :name %>

<%= f.text_field :name %>

<%= f.label :username %>

<%= f.text_field :username %>

<%= f.label :bio_url, "Website" %> example: www.about.me/greg

<%= f.text_field :bio_url %>

<%= f.label :bio %>

<%= f.text_area :bio %>

Change your background

<%= image_tag(@user.bg_image_url(:small).to_s) if @user.bg_image? %>
<%= f.file_field :bg_image %>
<%= f.hidden_field :bg_image_cache %>

<%= f.check_box :bg_tile %>
<%= f.label :bg_tile, "Tile background"%>

Avatar

<%= image_tag(@user.avatar_url(:small).to_s) if @user.avatar? %>
<%= f.file_field :avatar %>
<%= f.hidden_field :avatar_cache %>

<%= f.submit "Update" %>

<% end %>

Cancel my account

Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?",
:method => :delete %>.

<%= link_to "Back", :back %>
```

And this is the html source of that:

```

User Info

Email

Name

Username

Website example: www.about.me/greg

Bio

bio bio bio

Change your background

Tile background

Avatar

Cancel my account

Unhappy? Cancel my account.

Back

```