Forum: Ruby on Rails Displaying errors using form_remote_tag?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
C143acf82f94860ef6e2cba52b2de831?d=identicon&s=25 gmacgregor (Guest)
on 2007-01-21 07:26
(Received via mailing list)
My setup looks like this:

<h2 class="title"><%= @title %></h2>
<div id="project_list">
<%= render(:partial => "project", :collection => @projects) %>
<% content_for(:sidebar) do %>
<%= render :partial => 'sidebar' %>
<% end %>

<p>Create a new project</p>
<%= 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:

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 topic is locked and can not be replied to.