I am still trying to debug the issue.  The routes seem to be loaded
correctly.  From script console:

>>rs = ActionController::Routing::Routes
>>puts rs.routes
GET    /pages/:page_id/comments/
{:controller=>"comments", :action=>"index"}
GET    /pages/:page_id/comments.:format/
{:controller=>"comments", :action=>"index"}
POST   /pages/:page_id/comments/
{:controller=>"comments", :action=>"create"}
POST   /pages/:page_id/comments.:format/
{:controller=>"comments", :action=>"create"}
GET    /pages/:page_id/comments/new/
{:controller=>"comments", :action=>"new"}
GET    /pages/:page_id/comments/new.:format/
{:controller=>"comments", :action=>"new"}
GET    /pages/:page_id/comments/:id;edit/
{:controller=>"comments", :action=>"edit"}
GET    /pages/:page_id/comments/:id.:format;edit/
{:controller=>"comments", :action=>"edit"}
GET    /pages/:page_id/comments/:id/
{:controller=>"comments", :action=>"show"}
GET    /pages/:page_id/comments/:id.:format/
{:controller=>"comments", :action=>"show"}
PUT    /pages/:page_id/comments/:id/
{:controller=>"comments", :action=>"update"}
PUT    /pages/:page_id/comments/:id.:format/
{:controller=>"comments", :action=>"update"}
DELETE /pages/:page_id/comments/:id/
{:controller=>"comments", :action=>"destroy"}
DELETE /pages/:page_id/comments/:id.:format/
{:controller=>"comments", :action=>"destroy"}
GET    /admin/comments/
{:controller=>"admin/comments", :action=>"index"}
GET    /admin/comments.:format/
{:controller=>"admin/comments", :action=>"index"}
POST   /admin/comments/
{:controller=>"admin/comments", :action=>"create"}
POST   /admin/comments.:format/
{:controller=>"admin/comments", :action=>"create"}
GET    /admin/comments/new/
{:controller=>"admin/comments", :action=>"new"}
GET    /admin/comments/new.:format/
{:controller=>"admin/comments", :action=>"new"}
GET    /admin/comments/:id;edit/
{:controller=>"admin/comments", :action=>"edit"}
GET    /admin/comments/:id.:format;edit/
{:controller=>"admin/comments", :action=>"edit"}
GET    /admin/comments/:id/
{:controller=>"admin/comments", :action=>"show"}
GET    /admin/comments/:id.:format/
{:controller=>"admin/comments", :action=>"show"}
PUT    /admin/comments/:id/
{:controller=>"admin/comments", :action=>"update"}
PUT    /admin/comments/:id.:format/
{:controller=>"admin/comments", :action=>"update"}
DELETE /admin/comments/:id/
{:controller=>"admin/comments", :action=>"destroy"}
DELETE /admin/comments/:id.:format/
{:controller=>"admin/comments", :action=>"destroy"}
ANY    /admin/pages/:page_id/comments;:action/  {:controller=>"admin/comments"}
ANY    /admin/pages/:page_id/comments/:id;:action/
{:controller=>"admin/comments"}
ANY    /admin/
{:controller=>"admin/welcome", :action=>"index"}
ANY    /admin/welcome/
{:controller=>"admin/welcome", :action=>"index"}
ANY    /admin/login/
{:controller=>"admin/welcome", :action=>"login"}
ANY    /admin/logout/
{:controller=>"admin/welcome", :action=>"logout"}
ANY    /admin/export/
{:controller=>"admin/export", :action=>"yaml"}
ANY    /admin/export/yaml/
{:controller=>"admin/export", :action=>"yaml"}
ANY    /admin/pages/
{:controller=>"admin/page", :action=>"index"}
ANY    /admin/pages/edit/:id/
{:controller=>"admin/page", :action=>"edit"}
ANY    /admin/pages/:parent_id/child/new/
{:controller=>"admin/page", :action=>"new"}
ANY    /admin/pages/new/homepage/               {:slug=>"/",
:breadcrumb=>"Home", :controller=>"admin/page", :action=>"new"}
ANY    /admin/pages/remove/:id/
{:controller=>"admin/page", :action=>"remove"}
ANY    /admin/ui/pages/part/add/
{:controller=>"admin/page", :action=>"add_part"}
ANY    /admin/ui/pages/children/:id/:level/
{:controller=>"admin/page", :action=>"children"}
ANY    /admin/ui/pages/tag_reference/
{:controller=>"admin/page", :action=>"tag_reference"}
ANY    /admin/ui/pages/filter_reference/
{:controller=>"admin/page", :action=>"filter_reference"}
ANY    /admin/pages/cache/clear/
{:controller=>"admin/page", :action=>"clear_cache"}
ANY    /admin/layouts/
{:controller=>"admin/layout", :action=>"index"}
ANY    /admin/layouts/edit/:id/
{:controller=>"admin/layout", :action=>"edit"}
ANY    /admin/layouts/new/
{:controller=>"admin/layout", :action=>"new"}
ANY    /admin/layouts/remove/:id/
{:controller=>"admin/layout", :action=>"remove"}
ANY    /admin/snippets/
{:controller=>"admin/snippet", :action=>"index"}
ANY    /admin/snippets/edit/:id/
{:controller=>"admin/snippet", :action=>"edit"}
ANY    /admin/snippets/new/
{:controller=>"admin/snippet", :action=>"new"}
ANY    /admin/snippets/remove/:id/
{:controller=>"admin/snippet", :action=>"remove"}
ANY    /admin/users/
{:controller=>"admin/user", :action=>"index"}
ANY    /admin/users/edit/:id/
{:controller=>"admin/user", :action=>"edit"}
ANY    /admin/users/new/
{:controller=>"admin/user", :action=>"new"}
ANY    /admin/users/remove/:id/
{:controller=>"admin/user", :action=>"remove"}
ANY    /admin/preferences/
{:controller=>"admin/user", :action=>"preferences"}
ANY    /admin/extensions/
{:controller=>"admin/extension", :action=>"index"}
ANY    /admin/extensions/update/
{:controller=>"admin/extension", :action=>"update"}
ANY    /                                        {:url=>"/",
:controller=>"site", :action=>"show_page"}
ANY    /error/404/                              {:controller=>"site",
:action=>"not_found"}
ANY    /error/500/                              {:controller=>"site",
:action=>"error"}
ANY    /:url/                                   {:controller=>"site",
:action=>"show_page"}
=> nil

>> rs.recognize_path "/admin/comments"
=> {:url=>["admin", "comments"], :controller=>"site", :action=>"show_page"}


Additionally if I connect to my development environment:

http://radiant/admin/comments  I get the following error:

 NoMethodError in Admin/commentsController#index

undefined method `paginate' for Comment:Class

RAILS_ROOT: script/../config/..

I am running rail 1.2.5 so pagination is still built in.

Still working on debugging this myself but any help would be awesome.

-teyo





On 10/13/07, Teyo Tyree <[EMAIL PROTECTED]> wrote:
> So I completely reinstalled radiant on a virtual machine and
> reproduced the same issues I have with the comments plugin.  I just
> don't know how to proceed.  Any debugging suggestions would be
> awesome.  I really want to use radiant for a  project, but I
> absolutely have to have some commenting functionality.
>
> -teyo
>
> On 10/11/07, Teyo Tyree <[EMAIL PROTECTED]> wrote:
> > Ryan,
> >
> > I am using radiant 0.6.3.  Then latest version of admin_parts and the
> > most recent version of your comments extension.
> >
> > -teyo
> >
> > On 10/11/07, Teyo Tyree <[EMAIL PROTECTED]> wrote:
> > > I am a new radiant user am have some difficulty getting the comments
> > > extension working.
> > >
> > > I have svn exported the required extensions code to:
> > >
> > >  /var/radiant/extensions/comments and /var/radiant/extensions/admin_part
> > >
> > > and have successfully migrated the database:
> > >
> > > rake db:migrate:extensions
> > >
> > > If I enable the extensions and in the admin interface and click on any
> > > of my existing pages or the comments tab I get:
> > >
> > > Status: 500 Internal Server Error Content-Type: text/html
> > > Application error (Apache)
> > >
> > > Change this error message for exceptions thrown outside of an action
> > > (like in Dispatcher setups or broken Ruby code) in public/500.html
> > >
> > > I also get an error in the production log:
> > >
> > > NameError (uninitialized constant 
> > > ActionController::Routing::RoutingError):
> > >     
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:266:in
> > > `load_missing_constant'
> > >     
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:452:in
> > > `const_missing'
> > >     
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/app/controllers/application.rb:33:in
> > > `rescue_action_in_public'
> > >     
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/vendor/rails/actionpack/lib/action_controller/rescue.rb:31:in
> > > `rescue_action'
> > >     
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/vendor/rails/actionpack/lib/action_controller/rescue.rb:109:in
> > > `perform_action'
> > >     
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/vendor/rails/actionpack/lib/action_controller/base.rb:430:in
> > > `process_without_filters'
> > >     
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/vendor/rails/actionpack/lib/action_controller/filters.rb:624:in
> > > `process_without_session_management_support'
> > >     
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in
> > > `process'
> > >     
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/vendor/rails/actionpack/lib/action_controller/base.rb:330:in
> > > `process'
> > >     
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/vendor/rails/railties/lib/dispatcher.rb:41:in
> > > `dispatch'
> > >     /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in
> > > `process'
> > >     /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in
> > > `process'
> > >     /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in
> > > `process_client'
> > >     /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in
> > > `process_client'
> > >     /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run'
> > >     /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run'
> > >     /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run'
> > >     
> > > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in
> > > `run'
> > >     
> > > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in
> > > `run'
> > >     /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in 
> > > `run'
> > >     
> > > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in
> > > `run'
> > >     /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243
> > >     /usr/bin/mongrel_rails:16
> > >
> > >
> > > uninitialized constant ActionController::Routing::RoutingError
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:266:in
> > > `load_missing_constant'
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:452:in
> > > `const_missing'
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/app/controllers/application.rb:33:in
> > > `rescue_action_in_public'
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/vendor/rails/actionpack/lib/action_controller/rescue.rb:31:in
> > > `rescue_action'
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/vendor/rails/actionpack/lib/action_controller/rescue.rb:109:in
> > > `perform_action'
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/vendor/rails/actionpack/lib/action_controller/base.rb:430:in
> > > `process_without_filters'
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/vendor/rails/actionpack/lib/action_controller/filters.rb:624:in
> > > `process_without_session_management_support'
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in
> > > `process'
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/vendor/rails/actionpack/lib/action_controller/base.rb:330:in
> > > `process'
> > > /usr/lib/ruby/gems/1.8/gems/radiant-0.6.3/vendor/rails/railties/lib/dispatcher.rb:41:in
> > > `dispatch'
> > > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in 
> > > `process'
> > > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in 
> > > `process'
> > > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in 
> > > `process_client'
> > > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in 
> > > `process_client'
> > > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run'
> > > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run'
> > > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run'
> > > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in
> > > `run'
> > > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in
> > > `run'
> > > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in `run'
> > > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in 
> > > `run'
> > > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243
> > > /usr/bin/mongrel_rails:16
> > >
> > > I assume it has something to do with the route in
> > > comments_extensions.rb, but I don't know enough about rails
> > > applications at this point to really even hack a fix.
> > >
> > > Any help would be greatly appreciated!
> > >
> > > -teyo
> > >
> >
>
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to