views:

38

answers:

0

This is probably an RJS thing, but I'm a little unsure how to update a facebox properly if it contains a form. Let's say that I've got a sample app that does this:

<%= facebox_link_to "Something", :url => some_path %>

which renders a facebox (no issue here) like this:

<% remote_form_for(@something) do |f|%>
<%= f.error_messages %>
...
<%= f.submit "Send" %>
<% end #remote_form_for %>

Now, if my model contains validations, and when I submit I want the error messages to render withing the active facebox ... what do I do? I'm looking for help on the controller and view here :)