My setup looks like this:
#list.rhtml
<%= @title %>
<%= render(:partial => "project", :collection => @projects) %>
<% content_for(:sidebar) do %>
<%= render :partial => 'sidebar' %>
<% end %>
#_sidebar.html
Create a new project
<%= form_remote_tag :url => { :action => 'create' }, :html => {:id => 'new-project-form'} %> <%= render :partial => 'form' %> <%= submit_tag 'Create project' %>My _form partial is pretty standard: <%= error_messages_for ‘project’
%> followed by form fields. The create method for the controller
(called project_controller) can be seen here:
http://pastie.caboo.se/34584
I know that validations are working correctly but I don’t know how I
can get them to appear within the _sidebar partial. Can someone point
me in the right direction?