On Mon, Aug 31, 2009 at 4:40 PM, Jim Gay <j...@saturnflyer.com> wrote:

> 2009/8/31 María Paula Mariani <paulamari...@gmail.com>:
> > Hello! I'm trying to fix some mistakes I got after installing the Page
> > Attachments extensions required for the Blog extension.
>
> Page Attachments is in no way required for the Blog extension. Do you
> mean *you* or *your project* requires it?
>
> > >From the /admin, when I try to add a child page, or watch the code of
> > an existing page it displays this error:
> >
> > ActiveRecord::StatementInvalid in Admin/pages#edit
> >
> > Showing
> vendor/extensions/page_attachments/app/views/admin/pages/_attachments_box.html.erb
> > where line #5 raised:
> >
> > Mysql::Error: Table 'radiant_production.page_attachments' doesn't
> > exist: SHOW FIELDS FROM `page_attachments`
> > Extracted source (around line #5):
> >
> > 2:   <div class="toolbar">
> > 3:     <%= image_tag('admin/plus.png', :alt => 'Add') %>
> > 4:   </div>
> > 5:   <h3>Attachments (<span id="attachment_count"><%=
> > @page.attachments.count %></span>)</h3>
> > 6:
> > 7:   <%= javascript_tag "var auth_token = '#{form_authenticity_token}';"
> %>
> > 8:   <% unless @page.attachments.count.zero? %>
> >
> > Trace of template inclusion:
> >
> /usr/lib/ruby/gems/1.8/gems/radiant-0.8.0/app/views/admin/pages/_fields.html.haml,
> >
> /usr/lib/ruby/gems/1.8/gems/radiant-0.8.0/app/views/admin/pages/edit.html.haml
> >
> > RAILS_ROOT: /home/priani/radiant
> >
> >
> > ------------------------------------------------------------>
> >
> >
> > I've done de db migration, but nothing happens.
>
> Have you done it on the appropriate database?
>
> rake db:migrate:extensions
> vs.
> rake production db:migrate:extensions
>
> >
> > Thanks very much for your help!
> >
> >
> >
> > --
> > Paula
> --
> Jim Gay
> http://www.saturnflyer.com
> _______________________________________________
> Radiant mailing list
> Post:   Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>


Jim, you were right, with rake production db:migrate:extensions the problem
was solved :-) I was doing it somewhere else!

Thanks very much!


-- 
Paula
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to