Displaying errors using form_remote_tag?

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?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs