Commentable extension

Hello everyone,
I have some problems with Commentable extension:
I’ve created the config part with proper values:
status: 1
filter: Textile
and placed in content part values:

<r:comments:each>
<r: body />
</r:comments:each>
<r:comments:count />
<r:comments:form />

After submitting form i got error:

Processing SiteController#show_page (for 83.13.151.154 at 2007-10-03
10:30:01) [POST]
Session ID: b38da1f641556087ae9105cb8b3fa7ea
Parameters: {“name”=>“TestCF”, “body”=>“tesdt”, “title”=>“test”,
“url”=>[“adds”, “test”], “action”=>“show_page”, “controller”=>“site”}

NameError (undefined local variable or method config' for #<Commentable:0x4128e114>): .//vendor/radiant/vendor/rails/activerecord/lib/active_record/base.rb:1860:inmethod_missing’
/var/www/localhost/ror_development/vendor/extensions/commentable/lib/comments_util.rb:57:in
comments_config' /var/www/localhost/ror_development/vendor/extensions/commentable/lib/comments_util.rb:31:inuse_akismet?’
/var/www/localhost/ror_development/vendor/extensions/commentable/lib/comments_util.rb:27:in
valid_post?' /var/www/localhost/ror_development/vendor/extensions/commentable/lib/commentable.rb:23:inprocess’
.//vendor/radiant/app/controllers/site_controller.rb:32:in
process_page' .//vendor/radiant/app/controllers/site_controller.rb:38:inshow_uncached_page’
.//vendor/radiant/app/controllers/site_controller.rb:20:in
show_page' .//vendor/radiant/vendor/rails/actionpack/lib/action_controller/base.rb:1095:insend’
.//vendor/radiant/vendor/rails/actionpack/lib/action_controller/base.rb:1095:in
perform_action_without_filters' .//vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:632:incall_filter’
.//vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter' .//vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
.//vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter' .//vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:638:incall_filter’
.//vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
call' .//vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:637:incall_filter’
.//vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter' .//vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
.//vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter' .//vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:638:incall_filter’
.//vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
call' .//vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:637:incall_filter’
.//vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:619:in
perform_action_without_benchmark' .//vendor/radiant/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:inperform_action_without_rescue’
/usr/lib/ruby/1.8/benchmark.rb:293:in measure' .//vendor/radiant/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:inperform_action_without_rescue’
.//vendor/radiant/vendor/rails/actionpack/lib/action_controller/rescue.rb:83:in
perform_action' .//vendor/radiant/vendor/rails/actionpack/lib/action_controller/base.rb:430:insend’
.//vendor/radiant/vendor/rails/actionpack/lib/action_controller/base.rb:430:in
process_without_filters' .//vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:624:inprocess_without_session_management_support’
.//vendor/radiant/vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in
process_without_test' .//vendor/radiant/vendor/rails/actionpack/lib/action_controller/test_process.rb:15:inprocess’
.//vendor/radiant/vendor/rails/actionpack/lib/action_controller/base.rb:330:in
process' .//vendor/radiant/vendor/rails/railties/lib/dispatcher.rb:41:indispatch’
.//vendor/radiant/vendor/rails/railties/lib/webrick_server.rb:113:in
handle_dispatch' .//vendor/radiant/vendor/rails/railties/lib/webrick_server.rb:79:inservice’
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:inrun’
/usr/lib/ruby/1.8/webrick/server.rb:173:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:instart’
/usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:instart’
/usr/lib/ruby/1.8/webrick/server.rb:92:in each' /usr/lib/ruby/1.8/webrick/server.rb:92:instart’
/usr/lib/ruby/1.8/webrick/server.rb:23:in start' /usr/lib/ruby/1.8/webrick/server.rb:82:instart’
.//vendor/radiant/vendor/rails/railties/lib/webrick_server.rb:63:in
dispatch' .//vendor/radiant/vendor/rails/railties/lib/commands/servers/webrick.rb:59 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire__’
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
require' .//vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:inrequire’
.//vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in
new_constants_in' .//vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:inrequire’
.//vendor/radiant/vendor/rails/railties/lib/commands/server.rb:39
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
require__' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
script/server:3

Thanks for help.
Regards, Artur

Which comments extension are you speaking of? There’s one in my
repository that is not functional yet because I haven’t worked on it
(having not needed it per se).

Sean

This extension is called “commentable” and in Readme file starts
with:Comments Extension for RadiantCMS
by Sean C. - [email protected]
(ported to an extension by Loren J. - [email protected])

No info about version.

Hmm… well if it was ported from my Commentable behavior (for 0.5.x),
I have not had contact with the code in a LONG time. There were some
ugly hacks in Commentable anyway. I wouldn’t recommend it.
artofmission.com has a comments extension I believe.

Sean

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs