Displaying 1 result from an estimated 1 matches for "nilclass_name".
2008 Apr 10
3
Custom Form Builder Help
...acebooker''s typeahead widget in side the other form builder.
I don''t know much about form builders, but I created a file in lib/
doing this:
http://pastie.caboo.se/178776
It works great, except that the id''s and class names get messed up.
Instead of school_name, I get nilClass_name.
The other methods work fine however.
Here''s the form:
<h1>New School</h1>
<%= show_flash %>
<% af_form_for :school, :url => schools_path, :html => {:method
=> :post } do |f| %>
<%= f.typeahead :name, @schools, "name", "name" %>...