Hey, have managed to install the gallery extension fine and can see
the index page in the admin but upon creating a new gallery all I see
is an actioncontroller routing error, anyone else run into this:

ActionController::RoutingError in Galleries#new

Showing vendor/extensions/gallery/app/views/galleries/_form.html.erb
where line #31 raised:

edit_admin_gallery_keyword_url failed to generate from
{:controller=>"gallery_keywords", :gallery_id=>#<Gallery id: nil,
name: nil, slug: nil, path: nil, description: nil, created_at: nil,
updated_at: nil, hidden: false, parent_id: nil, external: false,
children_count: 0, created_by: nil, updated_by: nil, position: nil,
location: nil>, :id=>#<GalleryKeyword id: 1, keyword: "test gallery",
created_at: "2010-07-27 06:28:56", updated_at: "2010-07-27 06:28:56",
description: nil>, :action=>"edit"}, expected:
{:controller=>"gallery_keywords", :action=>"edit"}, diff:
{:gallery_id=>#<Gallery id: nil, name: nil, slug: nil, path: nil,
description: nil, created_at: nil, updated_at: nil, hidden: false,
parent_id: nil, external: false, children_count: 0, created_by: nil,
updated_by: nil, position: nil, location: nil>, :id=>#<GalleryKeyword
id: 1, keyword: "test gallery", created_at: "2010-07-27 06:28:56",
updated_at: "2010-07-27 06:28:56", description: nil>}
Extracted source (around line #31):

28:
29:                             <span class="keyword">
30:                                     <%= check_box_tag "keywords[]", 
keyword.id,
@gallery.gallery_keywords.include?(keyword) %>
31:                                     <%= link_to keyword.keyword,
edit_admin_gallery_keyword_path(@gallery, keyword) %>
32:                                     <%= ' | ' unless @keywords.last == 
keyword %>
33:                             </span>
34:
Trace of template inclusion: vendor/extensions/gallery/app/views/
galleries/new.html.erb



Have just removed the keyword stuff for now to bypass the problem...

Rich

Reply via email to