Using a nested-model form as a partial on a page

Hello, I have a nested model form for PhotoAlbums. The form works fine
via the standard html. But what I need to do is render it as a partial
in another page it’s erroring: “No route matches
{:action=>“create”, :controller=>“photo_albums”}”

The models:

has_many :photo_albums

belongs_to :project
has_many :photos

belongs_to :photo_album

def create
@project = Project.find(params[:project_id])
@photoalbum = PhotoAlbum.create(params[:photo_album])

Here is the working form which loads and works find via HTML:

<% form_for [:project, @photoalbum], :html => { :multipart => true }
do |f| %>

<%= f.label :title %>
<%= f.text_field :title %>

<% f.fields_for :photos do |builder| %>
<% if builder.object.new_record? %>
<%= builder.label :photo, “photo File” %>
<%= builder.file_field :photo %>
<% end %>
<% end %>

<% end %>

The issue I’m having, is that to render this form as a partial in a
view in another page. I’m using the following:

<% @photoalbum = %>
<%= render :partial => “photo_albums/form”, :locals =>
{:photoalbum => @photoalbum} %>

I checked by Rake Routes, And I do have it there:
project_photo_albums POST /projects/:project_id/
{:controller=>“photo_albums”, :action=>“create”}

Thoughts? thank you