[Radiant] Comments Extension

2009-12-21 Thread María Paula Mariani
Hello!

I'm having issues with the Comments extensions. When adding the
snippet comment to my layout I get this error message:


undefined method `author_url’ for nil:NilClass
undefined method `author’ for nil:NilClass
undefined method `author_url’ for nil:NilClass
said on
undefined method `created_at’ for nil:NilClass
:
undefined method `content_html’ for nil:NilClass


undefined method `approved?’ for nil:NilClass
undefined method `approved?’ for nil:NilClass


I've not installed Askimet, I read somewhere it may be the trouble?
The fact is that I'm posting comments, approving them in the Comments
tab and then I cannot watch them anywhere in the website. Which
snippet is made for that purpose?

If anyone had this issue, would be great to get an idea! By the way I
keep trying! Thanks veryy much,

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

[Radiant] Comments Extension Notification CommentMailer Settings

2009-11-25 Thread subsorama
Hello all, 

I'm currently using the comments extension and am looking at enabling the email 
notifications. 

When I add an email address through the settings extension for the 
comments.notification_to setting I get an SMTP syntax error when submitting a 
comment, yet when I hardcode the recipient in the comment_mailer.rb 
notification settings it sends successfully. 

# recipients receivers.join(', ') --- produces syntax error (invalid 
address)
recipients subsor...@gmail.com 

Could anyone please be kind enough to show me the correct way to add the 
address via the config settings?

Many thanks!

Dominic

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


Re: [Radiant] Comments Extension

2009-11-17 Thread Jim Gay
This is unrelated to the comments extension.

If you have a snippet which is filtered with Markdown (or Textile or
some other) and it includes one that, for example, has some
non-Markdown text with spaces on a line before some HTML or text
begins, the parsing of the parent snippet (the one with Markdown
formatting) will include the contents and filter it as though it were
filtered with Markdown.
This is a weakness in the way Radiant handles this... or at least its
a weakness in the way Radiant sets the expectation for how the content
will be processed.

The answer is to either not use any filtering, or change the
comment_form snippet syntax so that it will filter with Markdown.

Does that make sense?

On Mon, Nov 16, 2009 at 11:56 PM, Rob Levin roblevinten...@gmail.com wrote:
 Got it Jim. Thanks.

 One other question. If I have a Markdown filtered page and I want to
 insert comment snippets like: r:snippet name=comment_form/ using
 the default snippets, it shows up as preformatted text. Is there a
 workaround that I can make it actually show a form within a Markdown
 page or do I have to create my own custom snippets to achieve this?


 On Mon, Nov 16, 2009 at 8:03 PM, Jim Gay j...@saturnflyer.com wrote:
 You can; that's what you are doing.
 You have to tell Rails to load the mislav-will_paginate gem and
 recognize it as will_paginate.

 On Mon, Nov 16, 2009 at 10:58 PM, Rob Levin roblevinten...@gmail.com wrote:
 Hi Jim,

 That worked - thanks! So I can't depend on the system gem?

 On Mon, Nov 16, 2009 at 7:36 PM, Jim Gay j...@saturnflyer.com wrote:
 edit your config/environment.rb to have:

 config.gem 'mislav-will_paginate', :lib = 'will_paginate'

 I think that should do it.

 On Mon, Nov 16, 2009 at 10:11 PM, Alexander Wallace
 alexmlwall...@gmail.com wrote:
 Saw that a second after I click send, oops. Try installing it as a plugin,
 or directly installing the will_paginate gem (as opposed to the github
 version, mine is simply listed as will_paginate (2.2.2)...

 Try out these steps on script/console as well- should let you know if the
 gem is being loaded in properly.
 http://wiki.github.com/mislav/will_paginate/troubleshooting

 On Mon, Nov 16, 2009 at 10:06 PM, Rob Levin 
 roblevinten...@gmail.comwrote:

 I thought this was it:
 mislav-will_paginate (2.3.11)

 (as listed in my gem local listing). No?


 On Mon, Nov 16, 2009 at 7:04 PM, Alexander Wallace
 alexmlwall...@gmail.com wrote:
  Looks like you're missing the will_paginate gem. Try gem install
  will_paginate, or grab it from http://github.com/mislav/will_paginate
 
  Alex
 
  On Mon, Nov 16, 2009 at 9:58 PM, Rob Levin roblevinten...@gmail.com
 wrote:
 
  Wondering what to do to get comments extension to work. When I run the
  ./script/server -e [production|development] and go to the extensions
  tab in Admin I see the comments extension and also, a “Comments” tab
  showed up on the right of Admin. But I still got the following error
  when I click on it:
 
  NoMethodError in Admin/commentsController#index
  undefined method `paginate' for #Class:0x238bb8c
 
  Note that before the above I'd done:
     git clone git://github.com/sjlombardo/radiant-comments.git
  from the /vendor/extensions dir and renamed: `mv radiant-comments/
  comments/`
 
  Then I had to hack the source of
  /vendor/extensions/comments_extension.rb for the include application
  to:
 
     begin
        require_dependency 'application_controller'
     rescue MissingSourceFile
        require_dependency 'application'
     end
 
  And here are my local gems:
 --
 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


Re: [Radiant] Comments Extension

2009-11-17 Thread Rob Levin
Hi Jim, that's what I figured and so in order to have Markdown filter
it as raw HTML I will have to create my own snippet as I thought. Per
http://daringfireball.net/projects/markdown/syntax#html it seems the
only why Markdown will utilize it as 'Inline HTML' is if there's a a
line between the inline html and no indentation (thus the snippet
won't work in my case). I agree that this was not related to the
comment extension so I apologize for sneaking it in. Thanks for all
your help and wonderful extensions Jim ;-)

On Tue, Nov 17, 2009 at 7:38 AM, Jim Gay j...@saturnflyer.com wrote:
 This is unrelated to the comments extension.

 If you have a snippet which is filtered with Markdown (or Textile or
 some other) and it includes one that, for example, has some
 non-Markdown text with spaces on a line before some HTML or text
 begins, the parsing of the parent snippet (the one with Markdown
 formatting) will include the contents and filter it as though it were
 filtered with Markdown.
 This is a weakness in the way Radiant handles this... or at least its
 a weakness in the way Radiant sets the expectation for how the content
 will be processed.

 The answer is to either not use any filtering, or change the
 comment_form snippet syntax so that it will filter with Markdown.

 Does that make sense?

 On Mon, Nov 16, 2009 at 11:56 PM, Rob Levin roblevinten...@gmail.com wrote:
 Got it Jim. Thanks.

 One other question. If I have a Markdown filtered page and I want to
 insert comment snippets like: r:snippet name=comment_form/ using
 the default snippets, it shows up as preformatted text. Is there a
 workaround that I can make it actually show a form within a Markdown
 page or do I have to create my own custom snippets to achieve this?


 On Mon, Nov 16, 2009 at 8:03 PM, Jim Gay j...@saturnflyer.com wrote:
 You can; that's what you are doing.
 You have to tell Rails to load the mislav-will_paginate gem and
 recognize it as will_paginate.

 On Mon, Nov 16, 2009 at 10:58 PM, Rob Levin roblevinten...@gmail.com 
 wrote:
 Hi Jim,

 That worked - thanks! So I can't depend on the system gem?

 On Mon, Nov 16, 2009 at 7:36 PM, Jim Gay j...@saturnflyer.com wrote:
 edit your config/environment.rb to have:

 config.gem 'mislav-will_paginate', :lib = 'will_paginate'

 I think that should do it.

 On Mon, Nov 16, 2009 at 10:11 PM, Alexander Wallace
 alexmlwall...@gmail.com wrote:
 Saw that a second after I click send, oops. Try installing it as a 
 plugin,
 or directly installing the will_paginate gem (as opposed to the github
 version, mine is simply listed as will_paginate (2.2.2)...

 Try out these steps on script/console as well- should let you know if the
 gem is being loaded in properly.
 http://wiki.github.com/mislav/will_paginate/troubleshooting

 On Mon, Nov 16, 2009 at 10:06 PM, Rob Levin 
 roblevinten...@gmail.comwrote:

 I thought this was it:
 mislav-will_paginate (2.3.11)

 (as listed in my gem local listing). No?


 On Mon, Nov 16, 2009 at 7:04 PM, Alexander Wallace
 alexmlwall...@gmail.com wrote:
  Looks like you're missing the will_paginate gem. Try gem install
  will_paginate, or grab it from http://github.com/mislav/will_paginate
 
  Alex
 
  On Mon, Nov 16, 2009 at 9:58 PM, Rob Levin roblevinten...@gmail.com
 wrote:
 
  Wondering what to do to get comments extension to work. When I run 
  the
  ./script/server -e [production|development] and go to the extensions
  tab in Admin I see the comments extension and also, a “Comments” tab
  showed up on the right of Admin. But I still got the following error
  when I click on it:
 
  NoMethodError in Admin/commentsController#index
  undefined method `paginate' for #Class:0x238bb8c
 
  Note that before the above I'd done:
     git clone git://github.com/sjlombardo/radiant-comments.git
  from the /vendor/extensions dir and renamed: `mv radiant-comments/
  comments/`
 
  Then I had to hack the source of
  /vendor/extensions/comments_extension.rb for the include application
  to:
 
     begin
        require_dependency 'application_controller'
     rescue MissingSourceFile
        require_dependency 'application'
     end
 
  And here are my local gems:
 --
 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

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


[Radiant] Comments Extension

2009-11-16 Thread Rob Levin
Wondering what to do to get comments extension to work. When I run the
./script/server -e [production|development] and go to the extensions
tab in Admin I see the comments extension and also, a “Comments” tab
showed up on the right of Admin. But I still got the following error
when I click on it:

NoMethodError in Admin/commentsController#index
undefined method `paginate' for #Class:0x238bb8c

Note that before the above I'd done:
git clone git://github.com/sjlombardo/radiant-comments.git
from the /vendor/extensions dir and renamed: `mv radiant-comments/ comments/`

Then I had to hack the source of
/vendor/extensions/comments_extension.rb for the include application
to:

begin
   require_dependency 'application_controller'
rescue MissingSourceFile
   require_dependency 'application'
end

And here are my local gems:
gem list --local
actionmailer (2.3.4, 1.3.6)
actionpack (2.3.4, 1.13.6)
actionwebservice (1.2.6)
activerecord (2.3.4, 2.2.2, 1.15.6)
activeresource (2.3.4)
activesupport (2.3.4, 2.2.2, 1.4.4)
acts_as_ferret (0.4.1)
builder (2.1.2)
capistrano (2.0.0)
cgi_multipart_eof_fix (2.5.0)
cheat (1.2.1)
columnize (0.3.1)
configuration (1.1.0)
cucumber (0.4.0.rc1, 0.3.104)
daemons (1.0.9)
diff-lcs (1.1.2)
dnssd (0.6.0)
extlib (0.9.13)
fastercsv (1.5.0)
fastthread (1.0.1)
fcgi (0.8.7)
ferret (0.11.4)
flexmock (0.8.6)
flickraw (0.7.1)
gem_plugin (0.2.3)
gemcutter (0.1.6)
git (1.2.5)
heckle (1.4.3)
heroku (1.3.0, 1.2.1)
highline (1.5.1, 1.2.9)
hpricot (0.6)
jeweler (1.3.0)
johnson (1.1.2)
json (1.1.9)
json_pure (1.1.9)
launchy (0.3.3)
libxml-ruby (0.9.5, 0.3.8.4)
linecache (0.43)
mechanize (0.9.3)
mislav-will_paginate (2.3.11)
mongrel (1.1.4)
mysql (2.8.1)
needle (1.3.0)
net-scp (1.0.2)
net-sftp (1.1.0)
net-ssh (2.0.15, 1.1.2)
nokogiri (1.4.0, 1.3.3)
ParseTree (3.0.4)
polyglot (0.2.9)
rack (1.0.0)
radiant (0.8.1)
rails (2.3.4, 1.2.6)
rake (0.8.7, 0.7.3)
rdiscount (1.3.5, 1.3.4)
RedCloth (4.2.2, 3.0.4)
rest-client (1.0.3)
rhodes (1.2.1)
rhodes-build (1.2.1)
rhodes-framework (1.2.1)
rhodes-generator (1.2.1)
rspec (1.2.9, 1.2.9.rc1)
rspec-rails (1.2.9, 1.2.9.rc1)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3)
ruby-openid (1.1.4)
ruby-yadis (0.3.4)
ruby2ruby (1.2.4)
ruby_parser (2.0.4)
rubyforge (2.0.0)
rubygems-update (1.3.5, 1.3.1)
RubyInline (3.8.3)
rubynode (0.1.3)
rvm (0.0.62, 0.0.49)
sanitize (1.1.0)
Selenium (1.1.14)
selenium-client (1.2.17)
sequel (3.0.0)
session (2.4.0)
sexp_processor (3.0.3)
sinatra (0.9.2)
sqlite3-ruby (1.2.1)
taps (0.2.19)
templater (1.0.0)
term-ansicolor (1.0.4)
termios (0.9.4)
thor (0.9.9)
treetop (1.4.2)
visionmedia-bind (0.2.6)
visionmedia-commander (3.2.9)
visionmedia-jspec (2.11.2)
webrat (0.6.rc1)
xml-simple (1.0.12)
yahoo-weather (1.0.0)
ZenTest (4.1.4)
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Comments Extension

2009-11-16 Thread Alexander Wallace
Looks like you're missing the will_paginate gem. Try gem install
will_paginate, or grab it from http://github.com/mislav/will_paginate

Alex

On Mon, Nov 16, 2009 at 9:58 PM, Rob Levin roblevinten...@gmail.com wrote:

 Wondering what to do to get comments extension to work. When I run the
 ./script/server -e [production|development] and go to the extensions
 tab in Admin I see the comments extension and also, a “Comments” tab
 showed up on the right of Admin. But I still got the following error
 when I click on it:

 NoMethodError in Admin/commentsController#index
 undefined method `paginate' for #Class:0x238bb8c

 Note that before the above I'd done:
git clone git://github.com/sjlombardo/radiant-comments.git
 from the /vendor/extensions dir and renamed: `mv radiant-comments/
 comments/`

 Then I had to hack the source of
 /vendor/extensions/comments_extension.rb for the include application
 to:

begin
   require_dependency 'application_controller'
rescue MissingSourceFile
   require_dependency 'application'
end

 And here are my local gems:
 gem list --local
 actionmailer (2.3.4, 1.3.6)
 actionpack (2.3.4, 1.13.6)
 actionwebservice (1.2.6)
 activerecord (2.3.4, 2.2.2, 1.15.6)
 activeresource (2.3.4)
 activesupport (2.3.4, 2.2.2, 1.4.4)
 acts_as_ferret (0.4.1)
 builder (2.1.2)
 capistrano (2.0.0)
 cgi_multipart_eof_fix (2.5.0)
 cheat (1.2.1)
 columnize (0.3.1)
 configuration (1.1.0)
 cucumber (0.4.0.rc1, 0.3.104)
 daemons (1.0.9)
 diff-lcs (1.1.2)
 dnssd (0.6.0)
 extlib (0.9.13)
 fastercsv (1.5.0)
 fastthread (1.0.1)
 fcgi (0.8.7)
 ferret (0.11.4)
 flexmock (0.8.6)
 flickraw (0.7.1)
 gem_plugin (0.2.3)
 gemcutter (0.1.6)
 git (1.2.5)
 heckle (1.4.3)
 heroku (1.3.0, 1.2.1)
 highline (1.5.1, 1.2.9)
 hpricot (0.6)
 jeweler (1.3.0)
 johnson (1.1.2)
 json (1.1.9)
 json_pure (1.1.9)
 launchy (0.3.3)
 libxml-ruby (0.9.5, 0.3.8.4)
 linecache (0.43)
 mechanize (0.9.3)
 mislav-will_paginate (2.3.11)
 mongrel (1.1.4)
 mysql (2.8.1)
 needle (1.3.0)
 net-scp (1.0.2)
 net-sftp (1.1.0)
 net-ssh (2.0.15, 1.1.2)
 nokogiri (1.4.0, 1.3.3)
 ParseTree (3.0.4)
 polyglot (0.2.9)
 rack (1.0.0)
 radiant (0.8.1)
 rails (2.3.4, 1.2.6)
 rake (0.8.7, 0.7.3)
 rdiscount (1.3.5, 1.3.4)
 RedCloth (4.2.2, 3.0.4)
 rest-client (1.0.3)
 rhodes (1.2.1)
 rhodes-build (1.2.1)
 rhodes-framework (1.2.1)
 rhodes-generator (1.2.1)
 rspec (1.2.9, 1.2.9.rc1)
 rspec-rails (1.2.9, 1.2.9.rc1)
 ruby-debug (0.10.3)
 ruby-debug-base (0.10.3)
 ruby-openid (1.1.4)
 ruby-yadis (0.3.4)
 ruby2ruby (1.2.4)
 ruby_parser (2.0.4)
 rubyforge (2.0.0)
 rubygems-update (1.3.5, 1.3.1)
 RubyInline (3.8.3)
 rubynode (0.1.3)
 rvm (0.0.62, 0.0.49)
 sanitize (1.1.0)
 Selenium (1.1.14)
 selenium-client (1.2.17)
 sequel (3.0.0)
 session (2.4.0)
 sexp_processor (3.0.3)
 sinatra (0.9.2)
 sqlite3-ruby (1.2.1)
 taps (0.2.19)
 templater (1.0.0)
 term-ansicolor (1.0.4)
 termios (0.9.4)
 thor (0.9.9)
 treetop (1.4.2)
 visionmedia-bind (0.2.6)
 visionmedia-commander (3.2.9)
 visionmedia-jspec (2.11.2)
 webrat (0.6.rc1)
 xml-simple (1.0.12)
 yahoo-weather (1.0.0)
 ZenTest (4.1.4)
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

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


Re: [Radiant] Comments Extension

2009-11-16 Thread Rob Levin
I thought this was it:
mislav-will_paginate (2.3.11)

(as listed in my gem local listing). No?


On Mon, Nov 16, 2009 at 7:04 PM, Alexander Wallace
alexmlwall...@gmail.com wrote:
 Looks like you're missing the will_paginate gem. Try gem install
 will_paginate, or grab it from http://github.com/mislav/will_paginate

 Alex

 On Mon, Nov 16, 2009 at 9:58 PM, Rob Levin roblevinten...@gmail.com wrote:

 Wondering what to do to get comments extension to work. When I run the
 ./script/server -e [production|development] and go to the extensions
 tab in Admin I see the comments extension and also, a “Comments” tab
 showed up on the right of Admin. But I still got the following error
 when I click on it:

 NoMethodError in Admin/commentsController#index
 undefined method `paginate' for #Class:0x238bb8c

 Note that before the above I'd done:
    git clone git://github.com/sjlombardo/radiant-comments.git
 from the /vendor/extensions dir and renamed: `mv radiant-comments/
 comments/`

 Then I had to hack the source of
 /vendor/extensions/comments_extension.rb for the include application
 to:

    begin
       require_dependency 'application_controller'
    rescue MissingSourceFile
       require_dependency 'application'
    end

 And here are my local gems:
 gem list --local
 actionmailer (2.3.4, 1.3.6)
 actionpack (2.3.4, 1.13.6)
 actionwebservice (1.2.6)
 activerecord (2.3.4, 2.2.2, 1.15.6)
 activeresource (2.3.4)
 activesupport (2.3.4, 2.2.2, 1.4.4)
 acts_as_ferret (0.4.1)
 builder (2.1.2)
 capistrano (2.0.0)
 cgi_multipart_eof_fix (2.5.0)
 cheat (1.2.1)
 columnize (0.3.1)
 configuration (1.1.0)
 cucumber (0.4.0.rc1, 0.3.104)
 daemons (1.0.9)
 diff-lcs (1.1.2)
 dnssd (0.6.0)
 extlib (0.9.13)
 fastercsv (1.5.0)
 fastthread (1.0.1)
 fcgi (0.8.7)
 ferret (0.11.4)
 flexmock (0.8.6)
 flickraw (0.7.1)
 gem_plugin (0.2.3)
 gemcutter (0.1.6)
 git (1.2.5)
 heckle (1.4.3)
 heroku (1.3.0, 1.2.1)
 highline (1.5.1, 1.2.9)
 hpricot (0.6)
 jeweler (1.3.0)
 johnson (1.1.2)
 json (1.1.9)
 json_pure (1.1.9)
 launchy (0.3.3)
 libxml-ruby (0.9.5, 0.3.8.4)
 linecache (0.43)
 mechanize (0.9.3)
 mislav-will_paginate (2.3.11)
 mongrel (1.1.4)
 mysql (2.8.1)
 needle (1.3.0)
 net-scp (1.0.2)
 net-sftp (1.1.0)
 net-ssh (2.0.15, 1.1.2)
 nokogiri (1.4.0, 1.3.3)
 ParseTree (3.0.4)
 polyglot (0.2.9)
 rack (1.0.0)
 radiant (0.8.1)
 rails (2.3.4, 1.2.6)
 rake (0.8.7, 0.7.3)
 rdiscount (1.3.5, 1.3.4)
 RedCloth (4.2.2, 3.0.4)
 rest-client (1.0.3)
 rhodes (1.2.1)
 rhodes-build (1.2.1)
 rhodes-framework (1.2.1)
 rhodes-generator (1.2.1)
 rspec (1.2.9, 1.2.9.rc1)
 rspec-rails (1.2.9, 1.2.9.rc1)
 ruby-debug (0.10.3)
 ruby-debug-base (0.10.3)
 ruby-openid (1.1.4)
 ruby-yadis (0.3.4)
 ruby2ruby (1.2.4)
 ruby_parser (2.0.4)
 rubyforge (2.0.0)
 rubygems-update (1.3.5, 1.3.1)
 RubyInline (3.8.3)
 rubynode (0.1.3)
 rvm (0.0.62, 0.0.49)
 sanitize (1.1.0)
 Selenium (1.1.14)
 selenium-client (1.2.17)
 sequel (3.0.0)
 session (2.4.0)
 sexp_processor (3.0.3)
 sinatra (0.9.2)
 sqlite3-ruby (1.2.1)
 taps (0.2.19)
 templater (1.0.0)
 term-ansicolor (1.0.4)
 termios (0.9.4)
 thor (0.9.9)
 treetop (1.4.2)
 visionmedia-bind (0.2.6)
 visionmedia-commander (3.2.9)
 visionmedia-jspec (2.11.2)
 webrat (0.6.rc1)
 xml-simple (1.0.12)
 yahoo-weather (1.0.0)
 ZenTest (4.1.4)
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

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

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


Re: [Radiant] Comments Extension

2009-11-16 Thread Alexander Wallace
Saw that a second after I click send, oops. Try installing it as a plugin,
or directly installing the will_paginate gem (as opposed to the github
version, mine is simply listed as will_paginate (2.2.2)...

Try out these steps on script/console as well- should let you know if the
gem is being loaded in properly.
http://wiki.github.com/mislav/will_paginate/troubleshooting

On Mon, Nov 16, 2009 at 10:06 PM, Rob Levin roblevinten...@gmail.comwrote:

 I thought this was it:
 mislav-will_paginate (2.3.11)

 (as listed in my gem local listing). No?


 On Mon, Nov 16, 2009 at 7:04 PM, Alexander Wallace
 alexmlwall...@gmail.com wrote:
  Looks like you're missing the will_paginate gem. Try gem install
  will_paginate, or grab it from http://github.com/mislav/will_paginate
 
  Alex
 
  On Mon, Nov 16, 2009 at 9:58 PM, Rob Levin roblevinten...@gmail.com
 wrote:
 
  Wondering what to do to get comments extension to work. When I run the
  ./script/server -e [production|development] and go to the extensions
  tab in Admin I see the comments extension and also, a “Comments” tab
  showed up on the right of Admin. But I still got the following error
  when I click on it:
 
  NoMethodError in Admin/commentsController#index
  undefined method `paginate' for #Class:0x238bb8c
 
  Note that before the above I'd done:
 git clone git://github.com/sjlombardo/radiant-comments.git
  from the /vendor/extensions dir and renamed: `mv radiant-comments/
  comments/`
 
  Then I had to hack the source of
  /vendor/extensions/comments_extension.rb for the include application
  to:
 
 begin
require_dependency 'application_controller'
 rescue MissingSourceFile
require_dependency 'application'
 end
 
  And here are my local gems:
  gem list --local
  actionmailer (2.3.4, 1.3.6)
  actionpack (2.3.4, 1.13.6)
  actionwebservice (1.2.6)
  activerecord (2.3.4, 2.2.2, 1.15.6)
  activeresource (2.3.4)
  activesupport (2.3.4, 2.2.2, 1.4.4)
  acts_as_ferret (0.4.1)
  builder (2.1.2)
  capistrano (2.0.0)
  cgi_multipart_eof_fix (2.5.0)
  cheat (1.2.1)
  columnize (0.3.1)
  configuration (1.1.0)
  cucumber (0.4.0.rc1, 0.3.104)
  daemons (1.0.9)
  diff-lcs (1.1.2)
  dnssd (0.6.0)
  extlib (0.9.13)
  fastercsv (1.5.0)
  fastthread (1.0.1)
  fcgi (0.8.7)
  ferret (0.11.4)
  flexmock (0.8.6)
  flickraw (0.7.1)
  gem_plugin (0.2.3)
  gemcutter (0.1.6)
  git (1.2.5)
  heckle (1.4.3)
  heroku (1.3.0, 1.2.1)
  highline (1.5.1, 1.2.9)
  hpricot (0.6)
  jeweler (1.3.0)
  johnson (1.1.2)
  json (1.1.9)
  json_pure (1.1.9)
  launchy (0.3.3)
  libxml-ruby (0.9.5, 0.3.8.4)
  linecache (0.43)
  mechanize (0.9.3)
  mislav-will_paginate (2.3.11)
  mongrel (1.1.4)
  mysql (2.8.1)
  needle (1.3.0)
  net-scp (1.0.2)
  net-sftp (1.1.0)
  net-ssh (2.0.15, 1.1.2)
  nokogiri (1.4.0, 1.3.3)
  ParseTree (3.0.4)
  polyglot (0.2.9)
  rack (1.0.0)
  radiant (0.8.1)
  rails (2.3.4, 1.2.6)
  rake (0.8.7, 0.7.3)
  rdiscount (1.3.5, 1.3.4)
  RedCloth (4.2.2, 3.0.4)
  rest-client (1.0.3)
  rhodes (1.2.1)
  rhodes-build (1.2.1)
  rhodes-framework (1.2.1)
  rhodes-generator (1.2.1)
  rspec (1.2.9, 1.2.9.rc1)
  rspec-rails (1.2.9, 1.2.9.rc1)
  ruby-debug (0.10.3)
  ruby-debug-base (0.10.3)
  ruby-openid (1.1.4)
  ruby-yadis (0.3.4)
  ruby2ruby (1.2.4)
  ruby_parser (2.0.4)
  rubyforge (2.0.0)
  rubygems-update (1.3.5, 1.3.1)
  RubyInline (3.8.3)
  rubynode (0.1.3)
  rvm (0.0.62, 0.0.49)
  sanitize (1.1.0)
  Selenium (1.1.14)
  selenium-client (1.2.17)
  sequel (3.0.0)
  session (2.4.0)
  sexp_processor (3.0.3)
  sinatra (0.9.2)
  sqlite3-ruby (1.2.1)
  taps (0.2.19)
  templater (1.0.0)
  term-ansicolor (1.0.4)
  termios (0.9.4)
  thor (0.9.9)
  treetop (1.4.2)
  visionmedia-bind (0.2.6)
  visionmedia-commander (3.2.9)
  visionmedia-jspec (2.11.2)
  webrat (0.6.rc1)
  xml-simple (1.0.12)
  yahoo-weather (1.0.0)
  ZenTest (4.1.4)
  ___
  Radiant mailing list
  Post:   Radiant@radiantcms.org
  Search: http://radiantcms.org/mailing-list/search/
  Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
 
  ___
  Radiant mailing list
  Post:   Radiant@radiantcms.org
  Search: http://radiantcms.org/mailing-list/search/
  Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
 
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

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


Re: [Radiant] Comments Extension

2009-11-16 Thread Jim Gay
edit your config/environment.rb to have:

config.gem 'mislav-will_paginate', :lib = 'will_paginate'

I think that should do it.

On Mon, Nov 16, 2009 at 10:11 PM, Alexander Wallace
alexmlwall...@gmail.com wrote:
 Saw that a second after I click send, oops. Try installing it as a plugin,
 or directly installing the will_paginate gem (as opposed to the github
 version, mine is simply listed as will_paginate (2.2.2)...

 Try out these steps on script/console as well- should let you know if the
 gem is being loaded in properly.
 http://wiki.github.com/mislav/will_paginate/troubleshooting

 On Mon, Nov 16, 2009 at 10:06 PM, Rob Levin roblevinten...@gmail.comwrote:

 I thought this was it:
 mislav-will_paginate (2.3.11)

 (as listed in my gem local listing). No?


 On Mon, Nov 16, 2009 at 7:04 PM, Alexander Wallace
 alexmlwall...@gmail.com wrote:
  Looks like you're missing the will_paginate gem. Try gem install
  will_paginate, or grab it from http://github.com/mislav/will_paginate
 
  Alex
 
  On Mon, Nov 16, 2009 at 9:58 PM, Rob Levin roblevinten...@gmail.com
 wrote:
 
  Wondering what to do to get comments extension to work. When I run the
  ./script/server -e [production|development] and go to the extensions
  tab in Admin I see the comments extension and also, a “Comments” tab
  showed up on the right of Admin. But I still got the following error
  when I click on it:
 
  NoMethodError in Admin/commentsController#index
  undefined method `paginate' for #Class:0x238bb8c
 
  Note that before the above I'd done:
     git clone git://github.com/sjlombardo/radiant-comments.git
  from the /vendor/extensions dir and renamed: `mv radiant-comments/
  comments/`
 
  Then I had to hack the source of
  /vendor/extensions/comments_extension.rb for the include application
  to:
 
     begin
        require_dependency 'application_controller'
     rescue MissingSourceFile
        require_dependency 'application'
     end
 
  And here are my local gems:
-- 
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


[Radiant] comments extension roadmap

2009-11-16 Thread Bernard Yu
Hi,
We're about to start doing our own work on the comments extension, does anyone 
have a good roadmap for what is being done and where it's going?

Bernard Yu
EnguinDesign.com
202.569.8116

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


Re: [Radiant] Comments Extension

2009-11-16 Thread Rob Levin
Hi Jim,

That worked - thanks! So I can't depend on the system gem?

On Mon, Nov 16, 2009 at 7:36 PM, Jim Gay j...@saturnflyer.com wrote:
 edit your config/environment.rb to have:

 config.gem 'mislav-will_paginate', :lib = 'will_paginate'

 I think that should do it.

 On Mon, Nov 16, 2009 at 10:11 PM, Alexander Wallace
 alexmlwall...@gmail.com wrote:
 Saw that a second after I click send, oops. Try installing it as a plugin,
 or directly installing the will_paginate gem (as opposed to the github
 version, mine is simply listed as will_paginate (2.2.2)...

 Try out these steps on script/console as well- should let you know if the
 gem is being loaded in properly.
 http://wiki.github.com/mislav/will_paginate/troubleshooting

 On Mon, Nov 16, 2009 at 10:06 PM, Rob Levin roblevinten...@gmail.comwrote:

 I thought this was it:
 mislav-will_paginate (2.3.11)

 (as listed in my gem local listing). No?


 On Mon, Nov 16, 2009 at 7:04 PM, Alexander Wallace
 alexmlwall...@gmail.com wrote:
  Looks like you're missing the will_paginate gem. Try gem install
  will_paginate, or grab it from http://github.com/mislav/will_paginate
 
  Alex
 
  On Mon, Nov 16, 2009 at 9:58 PM, Rob Levin roblevinten...@gmail.com
 wrote:
 
  Wondering what to do to get comments extension to work. When I run the
  ./script/server -e [production|development] and go to the extensions
  tab in Admin I see the comments extension and also, a “Comments” tab
  showed up on the right of Admin. But I still got the following error
  when I click on it:
 
  NoMethodError in Admin/commentsController#index
  undefined method `paginate' for #Class:0x238bb8c
 
  Note that before the above I'd done:
     git clone git://github.com/sjlombardo/radiant-comments.git
  from the /vendor/extensions dir and renamed: `mv radiant-comments/
  comments/`
 
  Then I had to hack the source of
  /vendor/extensions/comments_extension.rb for the include application
  to:
 
     begin
        require_dependency 'application_controller'
     rescue MissingSourceFile
        require_dependency 'application'
     end
 
  And here are my local gems:
 --
 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

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


Re: [Radiant] comments extension roadmap

2009-11-16 Thread Jim Gay
On Mon, Nov 16, 2009 at 10:49 PM, Bernard Yu berna...@enguin.com wrote:
 Hi,
 We're about to start doing our own work on the comments extension, does 
 anyone have a good roadmap for what is being done and where it's going?

 Bernard Yu
 EnguinDesign.com
 202.569.8116

I'm currently maintaining it although I'm not currently working on it.
I'd like to see RSS feeds for comments and a few other things I don't
recall at the moment.
Send pull requests (with specs!) to http://github.com/saturnflyer

-- 
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


Re: [Radiant] Comments Extension

2009-11-16 Thread Jim Gay
You can; that's what you are doing.
You have to tell Rails to load the mislav-will_paginate gem and
recognize it as will_paginate.

On Mon, Nov 16, 2009 at 10:58 PM, Rob Levin roblevinten...@gmail.com wrote:
 Hi Jim,

 That worked - thanks! So I can't depend on the system gem?

 On Mon, Nov 16, 2009 at 7:36 PM, Jim Gay j...@saturnflyer.com wrote:
 edit your config/environment.rb to have:

 config.gem 'mislav-will_paginate', :lib = 'will_paginate'

 I think that should do it.

 On Mon, Nov 16, 2009 at 10:11 PM, Alexander Wallace
 alexmlwall...@gmail.com wrote:
 Saw that a second after I click send, oops. Try installing it as a plugin,
 or directly installing the will_paginate gem (as opposed to the github
 version, mine is simply listed as will_paginate (2.2.2)...

 Try out these steps on script/console as well- should let you know if the
 gem is being loaded in properly.
 http://wiki.github.com/mislav/will_paginate/troubleshooting

 On Mon, Nov 16, 2009 at 10:06 PM, Rob Levin roblevinten...@gmail.comwrote:

 I thought this was it:
 mislav-will_paginate (2.3.11)

 (as listed in my gem local listing). No?


 On Mon, Nov 16, 2009 at 7:04 PM, Alexander Wallace
 alexmlwall...@gmail.com wrote:
  Looks like you're missing the will_paginate gem. Try gem install
  will_paginate, or grab it from http://github.com/mislav/will_paginate
 
  Alex
 
  On Mon, Nov 16, 2009 at 9:58 PM, Rob Levin roblevinten...@gmail.com
 wrote:
 
  Wondering what to do to get comments extension to work. When I run the
  ./script/server -e [production|development] and go to the extensions
  tab in Admin I see the comments extension and also, a “Comments” tab
  showed up on the right of Admin. But I still got the following error
  when I click on it:
 
  NoMethodError in Admin/commentsController#index
  undefined method `paginate' for #Class:0x238bb8c
 
  Note that before the above I'd done:
     git clone git://github.com/sjlombardo/radiant-comments.git
  from the /vendor/extensions dir and renamed: `mv radiant-comments/
  comments/`
 
  Then I had to hack the source of
  /vendor/extensions/comments_extension.rb for the include application
  to:
 
     begin
        require_dependency 'application_controller'
     rescue MissingSourceFile
        require_dependency 'application'
     end
 
  And here are my local gems:
 --
 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


Re: [Radiant] Comments Extension

2009-11-16 Thread Rob Levin
Got it Jim. Thanks.

One other question. If I have a Markdown filtered page and I want to
insert comment snippets like: r:snippet name=comment_form/ using
the default snippets, it shows up as preformatted text. Is there a
workaround that I can make it actually show a form within a Markdown
page or do I have to create my own custom snippets to achieve this?


On Mon, Nov 16, 2009 at 8:03 PM, Jim Gay j...@saturnflyer.com wrote:
 You can; that's what you are doing.
 You have to tell Rails to load the mislav-will_paginate gem and
 recognize it as will_paginate.

 On Mon, Nov 16, 2009 at 10:58 PM, Rob Levin roblevinten...@gmail.com wrote:
 Hi Jim,

 That worked - thanks! So I can't depend on the system gem?

 On Mon, Nov 16, 2009 at 7:36 PM, Jim Gay j...@saturnflyer.com wrote:
 edit your config/environment.rb to have:

 config.gem 'mislav-will_paginate', :lib = 'will_paginate'

 I think that should do it.

 On Mon, Nov 16, 2009 at 10:11 PM, Alexander Wallace
 alexmlwall...@gmail.com wrote:
 Saw that a second after I click send, oops. Try installing it as a plugin,
 or directly installing the will_paginate gem (as opposed to the github
 version, mine is simply listed as will_paginate (2.2.2)...

 Try out these steps on script/console as well- should let you know if the
 gem is being loaded in properly.
 http://wiki.github.com/mislav/will_paginate/troubleshooting

 On Mon, Nov 16, 2009 at 10:06 PM, Rob Levin 
 roblevinten...@gmail.comwrote:

 I thought this was it:
 mislav-will_paginate (2.3.11)

 (as listed in my gem local listing). No?


 On Mon, Nov 16, 2009 at 7:04 PM, Alexander Wallace
 alexmlwall...@gmail.com wrote:
  Looks like you're missing the will_paginate gem. Try gem install
  will_paginate, or grab it from http://github.com/mislav/will_paginate
 
  Alex
 
  On Mon, Nov 16, 2009 at 9:58 PM, Rob Levin roblevinten...@gmail.com
 wrote:
 
  Wondering what to do to get comments extension to work. When I run the
  ./script/server -e [production|development] and go to the extensions
  tab in Admin I see the comments extension and also, a “Comments” tab
  showed up on the right of Admin. But I still got the following error
  when I click on it:
 
  NoMethodError in Admin/commentsController#index
  undefined method `paginate' for #Class:0x238bb8c
 
  Note that before the above I'd done:
     git clone git://github.com/sjlombardo/radiant-comments.git
  from the /vendor/extensions dir and renamed: `mv radiant-comments/
  comments/`
 
  Then I had to hack the source of
  /vendor/extensions/comments_extension.rb for the include application
  to:
 
     begin
        require_dependency 'application_controller'
     rescue MissingSourceFile
        require_dependency 'application'
     end
 
  And here are my local gems:
 --
 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

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


[Radiant] Comments Extension and Notifications

2009-08-13 Thread subsorama

Hi,

Firstly thanks to all those who developed this extension, it seems  
like quite a roll call.


Is this feature supported? I can see in TODO a note about stating that  
something similar is pending, but a quick glance through the code  
suggests it is in place.


If it isn't implemented is it possible to auto approve comments that  
pass the simple spam test?


Thanks ,

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


Re: [Radiant] Comments Extension and Notifications

2009-08-13 Thread john muhl
you can set `Radiant::Config['comments.auto_approve'] = true` through
the console, your environment or the settings extension and it will
auto-approve comments.

On Thu, Aug 13, 2009 at 12:02 PM, subsor...@gmail.com wrote:
 Hi,

 Firstly thanks to all those who developed this extension, it seems like
 quite a roll call.

 Is this feature supported? I can see in TODO a note about stating that
 something similar is pending, but a quick glance through the code suggests
 it is in place.

 If it isn't implemented is it possible to auto approve comments that pass
 the simple spam test?

 Thanks ,

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

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


Re: [Radiant] Comments Extension and Notifications

2009-08-13 Thread subsor...@gmail.com
That seems to work great, thanks for the super quick reply. Is this
compatible with the aski/mollum spam filtering?

2009/8/13 john muhl johnm...@gmail.com

 you can set `Radiant::Config['comments.auto_approve'] = true` through
 the console, your environment or the settings extension and it will
 auto-approve comments.

 On Thu, Aug 13, 2009 at 12:02 PM, subsor...@gmail.com wrote:
  Hi,
 
  Firstly thanks to all those who developed this extension, it seems like
  quite a roll call.
 
  Is this feature supported? I can see in TODO a note about stating that
  something similar is pending, but a quick glance through the code
 suggests
  it is in place.
 
  If it isn't implemented is it possible to auto approve comments that pass
  the simple spam test?
 
  Thanks ,
 
  ___
  Radiant mailing list
  Post:   Radiant@radiantcms.org
  Search: http://radiantcms.org/mailing-list/search/
  Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
 
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

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


Re: [Radiant] Comments Extension and Notifications

2009-08-13 Thread Jim Gay
Yes. Although I use neither.
I was working hard on cleaning up the code a while ago but had to put
it aside. I'll be doing more work on the codebase to make things
clearer, and word on the street is that Sean Cribbs may be updating
the Comments extension with some other stuff too.

If you have any more questions, post 'em here. If you fix any bugs,
send 'em to the github saturnflyer user.

-Jim

Jim Gay
http://www.saturnflyer.com

On Thu, Aug 13, 2009 at 3:09 PM, subsor...@gmail.comsubsor...@gmail.com wrote:
 That seems to work great, thanks for the super quick reply. Is this
 compatible with the aski/mollum spam filtering?

 2009/8/13 john muhl johnm...@gmail.com

 you can set `Radiant::Config['comments.auto_approve'] = true` through
 the console, your environment or the settings extension and it will
 auto-approve comments.

 On Thu, Aug 13, 2009 at 12:02 PM, subsor...@gmail.com wrote:
  Hi,
 
  Firstly thanks to all those who developed this extension, it seems like
  quite a roll call.
 
  Is this feature supported? I can see in TODO a note about stating that
  something similar is pending, but a quick glance through the code
 suggests
  it is in place.
 
  If it isn't implemented is it possible to auto approve comments that pass
  the simple spam test?
 
  Thanks ,
 
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Comments extension

2009-05-14 Thread Jim Gay

This is a bug in the extension.
It submits comments to the_page_url/comments and sets up routes to  
catch that and send it to the comments controller.
We'll need to make an exception for the home page and perhaps create a  
custom route for it.


Are you really accepting comments on your home page, or are you  
accepting comments on content listed on the homepage but actually  
saved in another location? It's possible that you might need to alter  
your radius code if that is the case.


On May 14, 2009, at 4:18 PM, Rafael Souza wrote:


I'm having trouble using the comments extension.

Just for test, I put r:snippet name=comments / in the home(/) of  
the

website.
And this shows the form to comment, but when a try to comment, this
redirects (form submit) to mysite/comments (a 404 error) and my  
comment

isn't saved...

Anyone know how I fix it?

Thanks


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


Re: [Radiant] Comments extension

2009-05-14 Thread Rafael Souza
The home comments was only for test, the blog comments works fine now! =]

One more doubt, how can I turn the comments moderated? For show in page only
after approved?

Thanks Jim, helped me a lot!

On Thu, May 14, 2009 at 5:29 PM, Jim Gay j...@saturnflyer.com wrote:

 This is a bug in the extension.
 It submits comments to the_page_url/comments and sets up routes to catch
 that and send it to the comments controller.
 We'll need to make an exception for the home page and perhaps create a
 custom route for it.

 Are you really accepting comments on your home page, or are you accepting
 comments on content listed on the homepage but actually saved in another
 location? It's possible that you might need to alter your radius code if
 that is the case.


 On May 14, 2009, at 4:18 PM, Rafael Souza wrote:

  I'm having trouble using the comments extension.

 Just for test, I put r:snippet name=comments / in the home(/) of the
 website.
 And this shows the form to comment, but when a try to comment, this
 redirects (form submit) to mysite/comments (a 404 error) and my comment
 isn't saved...

 Anyone know how I fix it?

 Thanks


 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

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


Re: [Radiant] Comments extension

2009-05-14 Thread Rafael Souza
I saw the code and I think that, to make the comments unapproved for
default, the way is to comment the line seven of comment.rb model:
#before_save :auto_approve

Can someone tells me if this is the best way?

Thanks,

Rafael Souza

On Thu, May 14, 2009 at 6:15 PM, Rafael Souza raf...@maisweb.org wrote:

 The home comments was only for test, the blog comments works fine now! =]

 One more doubt, how can I turn the comments moderated? For show in page
 only after approved?

 Thanks Jim, helped me a lot!


 On Thu, May 14, 2009 at 5:29 PM, Jim Gay j...@saturnflyer.com wrote:

 This is a bug in the extension.
 It submits comments to the_page_url/comments and sets up routes to catch
 that and send it to the comments controller.
 We'll need to make an exception for the home page and perhaps create a
 custom route for it.

 Are you really accepting comments on your home page, or are you accepting
 comments on content listed on the homepage but actually saved in another
 location? It's possible that you might need to alter your radius code if
 that is the case.


 On May 14, 2009, at 4:18 PM, Rafael Souza wrote:

  I'm having trouble using the comments extension.

 Just for test, I put r:snippet name=comments / in the home(/) of the
 website.
 And this shows the form to comment, but when a try to comment, this
 redirects (form submit) to mysite/comments (a 404 error) and my comment
 isn't saved...

 Anyone know how I fix it?

 Thanks


 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



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


Re: [Radiant] Comments Extension

2009-03-02 Thread Bryce Klimoski
There is no error and it does not show up in the comments tab waiting
for approval.  When I clicked on save comment my browser pulls up me
http://localhost:3000/comments, however since I have not added any
content to that page it comes up blank.  I'm guessing there is
something that needs to be added there. I have also look in the
comments table which is blank.

On Sun, Mar 1, 2009 at 11:00 PM, Steven Southard
ste...@stevensouthard.com wrote:
 What did happen when you submitted the comment?  Did you get an error?
 Typical, it will show your comment and say that it's awaiting approval.  In
 the comments tab in the admin you can then see and approve the comment.  In
 your case it's a little unclear what you did or what results you got.



 On Mar 2, 2009, at 12:09 AM, Bryce Klimoski wrote:

 I'm new to Radiant andlike what I see however I'm struggling with
 getting the comments extension working.  First things first here are
 some version info.

 Radian 0.7.1
 Comments Extenstion URL -
 git://github.com/artofmission/radiant-comments.git
 fastercsv 1.4.0
 mislav-will_paginate 2.3.7

 Getting all that installed was a piece of cake, however I ran into the
 following problem(s).

 1. When on the Pages tab of the Admin tool I got an error indicating
 it could not find some partials.  Further investigation lead me to
 realizing I had to rename the directory
 vendor/extensions/comments/app/views/admin/page to
 vendor/extensions/comments/app/views/admin/pages.  After that no more
 problems in the admin tool.

 2. My next problem is where I'm stuck.  I enable comments on a test
 page, filled out the form, and then clicked on save.  Which came up
 with a 404 error for /comments.  So I created that page and repeated
 my test.  Page came up fine, however the comment did not save in the
 database.  What am I missing here?  Is there a tag I need to add the
 /comments page for it to save them?

 Thanks,
 Bryce
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

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

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


Re: [Radiant] Comments Extension

2009-03-02 Thread Mohit Sindhwani

Bryce Klimoski wrote:

There is no error and it does not show up in the comments tab waiting
for approval.  When I clicked on save comment my browser pulls up me
http://localhost:3000/comments, however since I have not added any
content to that page it comes up blank.  I'm guessing there is
something that needs to be added there. I have also look in the
comments table which is blank.

  
HI I'm sorry I can't directly help with your problem here, but just to 
be clear, did you follow the instructions about using the Comments 
extension as given in the wiki page about using Radiant as a blog?

http://wiki.radiantcms.org/Using_Radiant_as_a_Blog

Cheers,
Mohit.
3/3/2009 | 12:23 AM.

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


Re: [Radiant] Comments Extension

2009-03-02 Thread Bryce Klimoski
Thanks for the link I'll take a closer look at it when I get home from work.

On Mon, Mar 2, 2009 at 8:23 AM, Mohit Sindhwani t...@onghu.com wrote:
 Bryce Klimoski wrote:

 There is no error and it does not show up in the comments tab waiting
 for approval.  When I clicked on save comment my browser pulls up me
 http://localhost:3000/comments, however since I have not added any
 content to that page it comes up blank.  I'm guessing there is
 something that needs to be added there. I have also look in the
 comments table which is blank.



 HI I'm sorry I can't directly help with your problem here, but just to be
 clear, did you follow the instructions about using the Comments extension as
 given in the wiki page about using Radiant as a blog?
 http://wiki.radiantcms.org/Using_Radiant_as_a_Blog

 Cheers,
 Mohit.
 3/3/2009 | 12:23 AM.

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

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


Re: [Radiant] Comments Extension

2009-03-02 Thread Mohit Sindhwani

Bryce Klimoski wrote:

I'm new to Radiant andlike what I see however I'm struggling with
getting the comments extension working.  First things first here are
some version info.

Radian 0.7.1
Comments Extenstion URL - git://github.com/artofmission/radiant-comments.git
fastercsv 1.4.0
mislav-will_paginate 2.3.7

Getting all that installed was a piece of cake, however I ran into the
following problem(s).

1. When on the Pages tab of the Admin tool I got an error indicating
it could not find some partials.  Further investigation lead me to
realizing I had to rename the directory
vendor/extensions/comments/app/views/admin/page to
vendor/extensions/comments/app/views/admin/pages.  After that no more
problems in the admin tool.

2. My next problem is where I'm stuck.  I enable comments on a test
page, filled out the form, and then clicked on save.  Which came up
with a 404 error for /comments.  So I created that page and repeated
my test.  Page came up fine, however the comment did not save in the
database.  What am I missing here?  Is there a tag I need to add the
/comments page for it to save them?
  

Hi Bryce

Did you run the migration?

Cheers,
Mohit.
3/3/2009 | 1:43 AM.

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


Re: [Radiant] Comments Extension

2009-03-02 Thread Bryce Klimoski
I ran both the update and migrate tasks..

rake radiant:extensions:comments:update
rake radiant:extensions:comments:migrate

I did not see an error occur with either one of them.

I also took a look at the url you sent earlier
http://wiki.radiantcms.org/Using_Radiant_as_a_Blog and the only thing I have
not done is enable Akismet, which I understand to be optional (I will be
doing once I get into production).

Thanks,
Bryce

On Mon, Mar 2, 2009 at 9:43 AM, Mohit Sindhwani t...@onghu.com wrote:

 Hi Bryce

 Did you run the migration?

 Cheers,
 Mohit.
 3/3/2009 | 1:43 AM.


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

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


[Radiant] Comments Extension

2009-03-01 Thread Bryce Klimoski
I'm new to Radiant andlike what I see however I'm struggling with
getting the comments extension working.  First things first here are
some version info.

Radian 0.7.1
Comments Extenstion URL - git://github.com/artofmission/radiant-comments.git
fastercsv 1.4.0
mislav-will_paginate 2.3.7

Getting all that installed was a piece of cake, however I ran into the
following problem(s).

1. When on the Pages tab of the Admin tool I got an error indicating
it could not find some partials.  Further investigation lead me to
realizing I had to rename the directory
vendor/extensions/comments/app/views/admin/page to
vendor/extensions/comments/app/views/admin/pages.  After that no more
problems in the admin tool.

2. My next problem is where I'm stuck.  I enable comments on a test
page, filled out the form, and then clicked on save.  Which came up
with a 404 error for /comments.  So I created that page and repeated
my test.  Page came up fine, however the comment did not save in the
database.  What am I missing here?  Is there a tag I need to add the
/comments page for it to save them?

Thanks,
Bryce
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Comments Extension

2009-03-01 Thread Steven Southard
What did happen when you submitted the comment?  Did you get an error?  
Typical, it will show your comment and say that it's awaiting  
approval.  In the comments tab in the admin you can then see and  
approve the comment.  In your case it's a little unclear what you did  
or what results you got.




On Mar 2, 2009, at 12:09 AM, Bryce Klimoski wrote:


I'm new to Radiant andlike what I see however I'm struggling with
getting the comments extension working.  First things first here are
some version info.

Radian 0.7.1
Comments Extenstion URL - git://github.com/artofmission/radiant- 
comments.git

fastercsv 1.4.0
mislav-will_paginate 2.3.7

Getting all that installed was a piece of cake, however I ran into the
following problem(s).

1. When on the Pages tab of the Admin tool I got an error indicating
it could not find some partials.  Further investigation lead me to
realizing I had to rename the directory
vendor/extensions/comments/app/views/admin/page to
vendor/extensions/comments/app/views/admin/pages.  After that no more
problems in the admin tool.

2. My next problem is where I'm stuck.  I enable comments on a test
page, filled out the form, and then clicked on save.  Which came up
with a 404 error for /comments.  So I created that page and repeated
my test.  Page came up fine, however the comment did not save in the
database.  What am I missing here?  Is there a tag I need to add the
/comments page for it to save them?

Thanks,
Bryce
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


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


[Radiant] Re: radiant-comments-extension install glitch

2009-02-06 Thread James Lavin
Jim Gay wrote:
 Have you run rake db:bootstrap yet?
 
 The first error says 'relation config does not exist' meaning the
 config table does not exist (which would be the case if you hadn't run
 the bootstrap)

Dear Jim:

Thanks for your reply!

I didn't run rake db:bootstrap because I was following the (sparse) 
directions at 
http://github.com/artofmission/radiant-comments/tree/master, which make 
no mention of this.

But your comment prompted me to realize that I hadn't specified the 
PRODUCTION database. I ran rake production 
radiant:extensions:comments:update --trace, which gave no error 
message. (I also then re-ran rake production 
radiant:extensions:comments:migrate, which also gave no error message.)

Unfortunately, the Comments tab still links to 
http://www.jameslavin.com/admin/comments/unapproved, which still 
generates an Application error page. (Perhaps this is because I have 
now installed but not yet configured the extension, but I suspect 
there's still something wrong.)

mail ~/public_html/jameslavin.com: rake production 
radiant:extensions:comments:update --trace
(in /home/jkl/public_html/jameslavin.com)
** Invoke production (first_time)
** Execute production
** Invoke environment (first_time)
** Execute environment
** Invoke radiant:extensions:comments:update (first_time)
** Invoke environment
** Execute radiant:extensions:comments:update

Again, Thanks.

--James
-- 
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Re: radiant-comments-extension install glitch

2009-02-06 Thread Sean Cribbs

Try the version from my fork:

git://github.com/seancribbs/radiant-comments.git

It is updated to work with 0.7.

Sean

P.S. Extension developers - don't set Radiant::Config values without 
checking for existence of the table! Your activate methods run on 
initialization, whether the DB is bootstrapped or not.


James Lavin wrote:

Jim Gay wrote:
  

Have you run rake db:bootstrap yet?

The first error says 'relation config does not exist' meaning the
config table does not exist (which would be the case if you hadn't run
the bootstrap)



Dear Jim:

Thanks for your reply!

I didn't run rake db:bootstrap because I was following the (sparse) 
directions at 
http://github.com/artofmission/radiant-comments/tree/master, which make 
no mention of this.


But your comment prompted me to realize that I hadn't specified the 
PRODUCTION database. I ran rake production 
radiant:extensions:comments:update --trace, which gave no error 
message. (I also then re-ran rake production 
radiant:extensions:comments:migrate, which also gave no error message.)


Unfortunately, the Comments tab still links to 
http://www.jameslavin.com/admin/comments/unapproved, which still 
generates an Application error page. (Perhaps this is because I have 
now installed but not yet configured the extension, but I suspect 
there's still something wrong.)


mail ~/public_html/jameslavin.com: rake production 
radiant:extensions:comments:update --trace

(in /home/jkl/public_html/jameslavin.com)
** Invoke production (first_time)
** Execute production
** Invoke environment (first_time)
** Execute environment
** Invoke radiant:extensions:comments:update (first_time)
** Invoke environment
** Execute radiant:extensions:comments:update

Again, Thanks.

--James
  


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


[Radiant] Re: Re: radiant-comments-extension install glitch

2009-02-06 Thread James Lavin
Sean Cribbs wrote:
 Try the version from my fork:
 
 git://github.com/seancribbs/radiant-comments.git
 
 It is updated to work with 0.7.
 
 Sean

Thanks for the fix, Sean. Do I still need to install the fork if almost 
everything is now working properly?

Here's what's still failing: Clicking Enable to enable comments for an 
article correctly changes the info in the database but then throws this 
error:

Processing Admin::CommentsController#enable (for XX.XX.XX.XX at 
2009-02-06 16:21:49) [GET]
  Session ID: XXX
  Parameters: {action=enable, page_id=23, 
controller=admin/comments}
Cookie set: session_token=; path=/; expires=Fri, 20 Feb 2009 
21:21:49 GMT

NameError (undefined local variable or method `page_index_path' for 
#Admin::CommentsController:0x7f0e4b013410):

/vendor/extensions/comments/app/controllers/admin/comments_controller.rb:66:in 
`enable'

/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/actionpack/lib/action_controller/base.rb:1166:in
 
`send'

/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/actionpack/lib/action_controller/base.rb:1166:in
 
`perform_action_without_filters'

/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/actionpack/lib/action_controller/filters.rb:579:in
 
`call_filters'

/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/actionpack/lib/action_controller/filters.rb:572:in
 
`perform_action_without_benchmark'

/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
 
`perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'

/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
 
`perform_action_without_rescue'

/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in
 
`perform_action_without_caching'

/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in
 
`passenger_orig_perform_action'

/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in
 
`cache'
...
-- 
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Re: Re: radiant-comments-extension install glitch

2009-02-06 Thread Sean Cribbs
One of my tasks for tomorrow is to introduce a module that will contain 
all of the legacy routes and their new equivalents.  This will be 
automatically included in the application helper and controller so the 
old routes will work.


Sean

James Lavin wrote:

Sean Cribbs wrote:
  

Try the version from my fork:

git://github.com/seancribbs/radiant-comments.git

It is updated to work with 0.7.

Sean



Thanks for the fix, Sean. Do I still need to install the fork if almost 
everything is now working properly?


Here's what's still failing: Clicking Enable to enable comments for an 
article correctly changes the info in the database but then throws this 
error:


Processing Admin::CommentsController#enable (for XX.XX.XX.XX at 
2009-02-06 16:21:49) [GET]

  Session ID: XXX
  Parameters: {action=enable, page_id=23, 
controller=admin/comments}
Cookie set: session_token=; path=/; expires=Fri, 20 Feb 2009 
21:21:49 GMT


NameError (undefined local variable or method `page_index_path' for 
#Admin::CommentsController:0x7f0e4b013410):
/vendor/extensions/comments/app/controllers/admin/comments_controller.rb:66:in 
`enable'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/actionpack/lib/action_controller/base.rb:1166:in 
`send'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/actionpack/lib/action_controller/base.rb:1166:in 
`perform_action_without_filters'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/actionpack/lib/action_controller/filters.rb:579:in 
`call_filters'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/actionpack/lib/action_controller/filters.rb:572:in 
`perform_action_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in 
`perform_action_without_rescue'

/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in 
`perform_action_without_rescue'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in 
`perform_action_without_caching'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in 
`passenger_orig_perform_action'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in 
`cache'

...
  


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


[Radiant] radiant-comments-extension install glitch

2009-02-05 Thread James Lavin
Hi:

New to blogging, I installed Radiant on Tuesday. I'm running 0.7.0-rc2
(http://radiantcms.org/blog/archives/2009/01/21/radiant-0-7-0-rc2-available/)
with Postgres on Ubuntu Hardy. The basic site is up and running without
a glitch.

But when I tried to install radiant-comments-extension, I got the error
below. Any thoughts would sure be appreciated.

The extension is partially installed. I see the Comments tab in
/admin, and there are three comment-related snippets. But the Comments
tab links to http://www.jameslavin.com/admin/comments/unapproved, which
displays an Application error page.

A second (possibly related) question is where I should be installing the
extension... in
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/extensions or
~/public_html/jameslavin.com.

(I'm suspicious of this line in the stack trace:
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/app/models/radiant/config.rb:34:in
`[]')

Thank you for taking time to look at this!

--James Lavin

rake radiant:extensions:comments:update --trace produces...

(in /home/jkl/public_html/jameslavin.com)
** Invoke radiant:extensions:comments:update (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
PGError: ERROR:  relation config does not exist
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
d.adsrc, a.attnotnull
 FROM pg_attribute a LEFT JOIN pg_attrdef d
   ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = 'config'::regclass
  AND a.attnum  0 AND NOT a.attisdropped
ORDER BY a.attnum
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:147:in
`log'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:471:in
`query'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:983:in
`column_definitions'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:616:in
`columns'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/lib/active_record/base.rb:1149:in
`columns'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/lib/active_record/base.rb:1162:in
`column_names'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/lib/active_record/base.rb:1175:in
`column_methods_hash'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/lib/active_record/base.rb:1719:in
`all_attributes_exists?'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:216:in
`all?'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/lib/active_record/base.rb:1719:in
`each'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/lib/active_record/base.rb:1719:in
`all?'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/lib/active_record/base.rb:1719:in
`all_attributes_exists?'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/lib/active_record/base.rb:1618:in
`method_missing'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/app/models/radiant/config.rb:34:in
`[]'
/home/jkl/public_html/jameslavin.com/vendor/extensions/comments/comments_extension.rb:59:in
`activate'
/home/jkl/public_html/jameslavin.com/vendor/extensions/comments/comments_extension.rb:59:in
`each'
/home/jkl/public_html/jameslavin.com/vendor/extensions/comments/comments_extension.rb:59:in
`activate'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/lib/radiant/extension.rb:38:in
`activate'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activesupport/lib/active_support/core_ext/symbol.rb:11:in
`__send__'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activesupport/lib/active_support/core_ext/symbol.rb:11:in
`to_proc'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/lib/radiant/extension_loader.rb:94:in
`each'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/lib/radiant/extension_loader.rb:94:in
`activate_extensions'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/lib/radiant/initializer.rb:112:in
`after_initialize'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/railties/lib/initializer.rb:152:in
`process'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/railties/lib/initializer.rb:97:in
`send'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/railties/lib/initializer.rb:97:in
`run'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/lib/radiant/initializer.rb:91:in
`run'
/home/jkl/public_html/jameslavin.com/config/environment.rb:12
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in
`require'
/usr/lib/ruby/gems/1.8/gems/radiant

Re: [Radiant] radiant-comments-extension install glitch

2009-02-05 Thread Jim Gay

Have you run rake db:bootstrap yet?

The first error says 'relation config does not exist' meaning the  
config table does not exist (which would be the case if you hadn't run  
the bootstrap)


On Feb 5, 2009, at 9:13 PM, James Lavin wrote:


Hi:

New to blogging, I installed Radiant on Tuesday. I'm running 0.7.0-rc2
(http://radiantcms.org/blog/archives/2009/01/21/radiant-0-7-0-rc2-available/ 
)
with Postgres on Ubuntu Hardy. The basic site is up and running  
without

a glitch.

But when I tried to install radiant-comments-extension, I got the  
error

below. Any thoughts would sure be appreciated.

The extension is partially installed. I see the Comments tab in
/admin, and there are three comment-related snippets. But the  
Comments
tab links to http://www.jameslavin.com/admin/comments/unapproved,  
which

displays an Application error page.

A second (possibly related) question is where I should be installing  
the

extension... in
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/extensions or
~/public_html/jameslavin.com.

(I'm suspicious of this line in the stack trace:
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/app/models/radiant/ 
config.rb:34:in

`[]')

Thank you for taking time to look at this!

--James Lavin

rake radiant:extensions:comments:update --trace produces...

(in /home/jkl/public_html/jameslavin.com)
** Invoke radiant:extensions:comments:update (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
PGError: ERROR:  relation config does not exist
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
  ON a.attrelid = d.adrelid AND a.attnum = d.adnum
   WHERE a.attrelid = 'config'::regclass
 AND a.attnum  0 AND NOT a.attisdropped
   ORDER BY a.attnum
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/ 
lib/active_record/connection_adapters/abstract_adapter.rb:147:in

`log'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/ 
lib/active_record/connection_adapters/postgresql_adapter.rb:471:in

`query'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/ 
lib/active_record/connection_adapters/postgresql_adapter.rb:983:in

`column_definitions'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/ 
lib/active_record/connection_adapters/postgresql_adapter.rb:616:in

`columns'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/ 
lib/active_record/base.rb:1149:in

`columns'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/ 
lib/active_record/base.rb:1162:in

`column_names'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/ 
lib/active_record/base.rb:1175:in

`column_methods_hash'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/ 
lib/active_record/base.rb:1719:in

`all_attributes_exists?'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activesupport/ 
lib/active_support/dependencies.rb:216:in

`all?'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/ 
lib/active_record/base.rb:1719:in

`each'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/ 
lib/active_record/base.rb:1719:in

`all?'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/ 
lib/active_record/base.rb:1719:in

`all_attributes_exists?'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activerecord/ 
lib/active_record/base.rb:1618:in

`method_missing'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/app/models/radiant/ 
config.rb:34:in

`[]'
/home/jkl/public_html/jameslavin.com/vendor/extensions/comments/ 
comments_extension.rb:59:in

`activate'
/home/jkl/public_html/jameslavin.com/vendor/extensions/comments/ 
comments_extension.rb:59:in

`each'
/home/jkl/public_html/jameslavin.com/vendor/extensions/comments/ 
comments_extension.rb:59:in

`activate'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/lib/radiant/extension.rb: 
38:in

`activate'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activesupport/ 
lib/active_support/core_ext/symbol.rb:11:in

`__send__'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/activesupport/ 
lib/active_support/core_ext/symbol.rb:11:in

`to_proc'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/lib/radiant/ 
extension_loader.rb:94:in

`each'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/lib/radiant/ 
extension_loader.rb:94:in

`activate_extensions'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/lib/radiant/initializer.rb: 
112:in

`after_initialize'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/railties/lib/ 
initializer.rb:152:in

`process'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/railties/lib/ 
initializer.rb:97:in

`send'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/vendor/rails/railties/lib/ 
initializer.rb:97:in

`run'
/usr/lib/ruby/gems/1.8/gems/radiant-0.7.0/lib/radiant/initializer.rb: 
91:in

`run'
/home/jkl/public_html/jameslavin.com

[Radiant] comments extension error / application error

2009-01-30 Thread Steven Southard
Once a page has comments there is a link in the admin of that page to  
view comments and if I click on it I get an application error.  This  
is what the production log says:



 Parameters: {action=index, page_id=5, controller=admin/ 
comments}
Cookie set: session_token=a7c8382524930cc092981330cf62fc75f8a68582;  
path=/; expires=Sat, 14 Feb 2009 00:43:07 GMT

Rendering template within layouts/application
Rendering admin/comments/index


ActionView::TemplateError (undefined method `page_edit_url' for  
#ActionView::Base:0x93fe360) on line #1 of admin/comments/index.rhtml:
1: h1%= @page.nil? ? #{params[:status].titleize if  
params[:status]} Comments : #...@page.comments_count}  
#{pluralize(@page.comments_count, Comment)} on  
#{link_to(@page.title, page_edit_url(@page.id))} %/h1

2:
3: p class=comment-nav
4:   View:

vendor/extensions/comments/app/views/admin/comments/index.rhtml: 
1:in  
` 
_run_erb_47vendor47extensions47comments47app47views47admin47comments47index46rhtml 
'

vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
vendor/rails/actionpack/lib/action_view/template_handlers/ 
compilable.rb:29:in `send'
vendor/rails/actionpack/lib/action_view/template_handlers/ 
compilable.rb:29:in `render'

vendor/rails/actionpack/lib/action_view/template.rb:35:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:22:in  
`render_template'
vendor/rails/actionpack/lib/action_view/base.rb:248:in  
`render_file'



What do I do about this undefined method 'page_edit_url'?

Thanks for any help,

Steven


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


Re: [Radiant] comments extension error / application error

2009-01-30 Thread Jim Gay
Comments may not have been updated for Radiant 0.7 (which did not  
preserve named routes from earlier versions)
I believe it should be edit_admin_page_url now, assuming you are on  
edge Radiant.


On Jan 30, 2009, at 8:06 PM, Steven Southard wrote:

Once a page has comments there is a link in the admin of that page  
to view comments and if I click on it I get an application error.   
This is what the production log says:



Parameters: {action=index, page_id=5, controller=admin/ 
comments}
Cookie set: session_token=a7c8382524930cc092981330cf62fc75f8a68582;  
path=/; expires=Sat, 14 Feb 2009 00:43:07 GMT

Rendering template within layouts/application
Rendering admin/comments/index


ActionView::TemplateError (undefined method `page_edit_url' for  
#ActionView::Base:0x93fe360) on line #1 of admin/comments/ 
index.rhtml:
1: h1%= @page.nil? ? #{params[:status].titleize if  
params[:status]} Comments : #...@page.comments_count}  
#{pluralize(@page.comments_count, Comment)} on  
#{link_to(@page.title, page_edit_url(@page.id))} %/h1

2:
3: p class=comment-nav
4:   View:

   vendor/extensions/comments/app/views/admin/comments/index.rhtml: 
1:in  
` 
_run_erb_47vendor47extensions47comments47app47views47admin47comments47index46rhtml 
'

   vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
   vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
   vendor/rails/actionpack/lib/action_view/template_handlers/ 
compilable.rb:29:in `send'
   vendor/rails/actionpack/lib/action_view/template_handlers/ 
compilable.rb:29:in `render'

   vendor/rails/actionpack/lib/action_view/template.rb:35:in `render'
   vendor/rails/actionpack/lib/action_view/template.rb:22:in  
`render_template'
   vendor/rails/actionpack/lib/action_view/base.rb:248:in  
`render_file'



What do I do about this undefined method 'page_edit_url'?

Thanks for any help,

Steven

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


Re: [Radiant] comments extension error / application error

2009-01-30 Thread Steven Southard

Thank you Jim.  I bet you're right.


Steven



On Jan 30, 2009, at 8:07 PM, Jim Gay wrote:

Comments may not have been updated for Radiant 0.7 (which did not  
preserve named routes from earlier versions)
I believe it should be edit_admin_page_url now, assuming you are on  
edge Radiant.


On Jan 30, 2009, at 8:06 PM, Steven Southard wrote:

Once a page has comments there is a link in the admin of that page  
to view comments and if I click on it I get an application error.   
This is what the production log says:



Parameters: {action=index, page_id=5,  
controller=admin/comments}
Cookie set: session_token=a7c8382524930cc092981330cf62fc75f8a68582;  
path=/; expires=Sat, 14 Feb 2009 00:43:07 GMT

Rendering template within layouts/application
Rendering admin/comments/index


ActionView::TemplateError (undefined method `page_edit_url' for  
#ActionView::Base:0x93fe360) on line #1 of admin/comments/ 
index.rhtml:
1: h1%= @page.nil? ? #{params[:status].titleize if  
params[:status]} Comments : #...@page.comments_count}  
#{pluralize(@page.comments_count, Comment)} on  
#{link_to(@page.title, page_edit_url(@page.id))} %/h1

2:
3: p class=comment-nav
4:   View:

  vendor/extensions/comments/app/views/admin/comments/index.rhtml: 
1:in  
` 
_run_erb_47vendor47extensions47comments47app47views47admin47comments47index46rhtml 
'

  vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
  vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
  vendor/rails/actionpack/lib/action_view/template_handlers/ 
compilable.rb:29:in `send'
  vendor/rails/actionpack/lib/action_view/template_handlers/ 
compilable.rb:29:in `render'

  vendor/rails/actionpack/lib/action_view/template.rb:35:in `render'
  vendor/rails/actionpack/lib/action_view/template.rb:22:in  
`render_template'
  vendor/rails/actionpack/lib/action_view/base.rb:248:in  
`render_file'



What do I do about this undefined method 'page_edit_url'?

Thanks for any help,

Steven

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


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


Re: [Radiant] Comments Extension

2008-10-21 Thread Mohit Sindhwani

Hi Everyone

Any ideas?

Cheers,
Mohit.


Mohit Sindhwani wrote:
I'm just starting to use the comments extension and I followed the 
instructions that ere there in messages here and there and it works 
fine. (I'm going to compile it for Summer Reboot soon).


There is just one thing that comes up. Both versions (ntalbott and 
artofmission) make a clear note saying:
Relative urls will not work on comment pages if they fail validation, 
since the page gets re-rendered at a (probably) different level of the 
hierarchy. Always use absolute urls and you won’t have any issues.


But, I find that when the form is submitted with a comment, it usually 
directs to a page like:

http://localhost:3300/en/my_page/comments#comment-4

On this page also, I get errors like:
undefined method `relative_url_root’ for nil:NilClass
”Concepts

On the other hand, the main page http://localhost:3300/en/my_page/ 
works just fine!


[1] I'm wondering what is the recommended approach to prevent this 
from happening (other than relative URLs being avoided) since my pages 
are connected to one another using things like r:children:each and 
one of the good things with the CMS is the ability to not have to use 
hard coded absolute links.


[2] If I were to try to change this behaviour, where in the code 
should I look? For example, if I wanted to change the display of the 
page details and the comment together (which causes the above issue 
specifically) or to look for a better generic solution (though I'm not 
sure I'd be able to find one).


[3] Finally, I find that in the admin UI, when I click to view the 
comments, quite often, the HTML is all messed up for the page (e.g. 
the headings and fonts are larger than the regular Radiant admin UI). 
Any one else noticed that? I haven't investigated this enough, so I'm 
not yet sure why that happens.


Thanks
Mohit.


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



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


Re: [Radiant] Comments Extension

2008-10-21 Thread Mohit Sindhwani

Hi Sean

Sean Cribbs wrote:

Mohit,

My apologies for not responding sooner.  

The apology is not needed at all :)

This is something I'd like to address sooner rather than later, and do 
it in a way that is similar to what I did to the mailer extension -- 
supporting post-backs to the page rather than to a separate 
controller.  However, it looks like that specific error comes from not 
having the request available to the page -- assigning it before the 
'render' call should be sufficient.


In the meantime, try my fork which includes some of the enhancements 
from other authors and see if it solves some problems for you.

Will do!  I'll get to it tonight!

Cheers,
Mohit.
10/22/2008 | 11:25 AM.







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


[Radiant] Comments extension

2008-09-10 Thread Gert Jørgensen
Hi,

I'm trying to use the comments extension found at:
http://github.com/artofmission/radiant-comments/tree/master

I'm following the README at:
http://github.com/artofmission/radiant-comments/tree/master/README.rdoc

and it seems everything works except one thing:

When posting a new comment from the website I get this error:
http://pastie.org/269694

I also get it when accessing the index method of the CommentsController,
it's the call to @page.render

The README states:
Relative urls will not work on comment pages if they fail validation,
since the page gets re-rendered at a (probably) different level of the
hierarchy. Always use absolute urls and you won’t have any issues.

Is this what I'm running into? Any ideas of where to go from here?

Thanks !
-- 
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Comments extension

2008-09-10 Thread Sean Cribbs

Gert,

That looks like a bug in the extension.  They'll need to manually set 
the request on the page to fix that issue. e.g.


@page.request = request
@page.render

Sean

Gert Jørgensen wrote:

Hi,

I'm trying to use the comments extension found at:
http://github.com/artofmission/radiant-comments/tree/master

I'm following the README at:
http://github.com/artofmission/radiant-comments/tree/master/README.rdoc

and it seems everything works except one thing:

When posting a new comment from the website I get this error:
http://pastie.org/269694

I also get it when accessing the index method of the CommentsController,
it's the call to @page.render

The README states:
Relative urls will not work on comment pages if they fail validation,
since the page gets re-rendered at a (probably) different level of the
hierarchy. Always use absolute urls and you won’t have any issues.

Is this what I'm running into? Any ideas of where to go from here?

Thanks !
  



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


Re: [Radiant] Comments Extension

2008-07-14 Thread Jim Gay
This is a bug in 0.6.7 that occurs when run in development mode. If  
you run it in production mode it will go away, or if you freeze to the  
edge that should also take care of it.


On Jul 14, 2008, at 7:00 AM, Josh Schairbaum wrote:

I've just installed the Comments Extension into a new Radiant  
application.  It appears to work, except that every request I make  
adds an additional link to 'enable' comments on the page listing  
page.  After 15 requests, there's 15 links.  Restarting the server  
corrects this.


Where can I find where the extension adds the overlay to the admin  
pages?


Regards,
Josh
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


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


Re: [Radiant] Comments Extension

2008-07-14 Thread Josh Schairbaum
Embarrassing for me.  I've subscribed to this mailing list for several  
months now and seen people talk about this known bug, but never read  
them since I didn't have an issue.  Lesson learned by me, then.


Thanks Jim.

Regards,
Josh

On Jul 14, 2008, at 7:12 AM, Jim Gay wrote:

This is a bug in 0.6.7 that occurs when run in development mode. If  
you run it in production mode it will go away, or if you freeze to  
the edge that should also take care of it.


On Jul 14, 2008, at 7:00 AM, Josh Schairbaum wrote:

I've just installed the Comments Extension into a new Radiant  
application.  It appears to work, except that every request I make  
adds an additional link to 'enable' comments on the page listing  
page.  After 15 requests, there's 15 links.  Restarting the server  
corrects this.


Where can I find where the extension adds the overlay to the admin  
pages?


Regards,
Josh
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


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


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