Re: [Radiant] Comments Notification
Anna,
Good suggeston, but this time there was no stealth error message. I
wonder if I have a complete copy of this extension. I had one a long
time ago, before I started Women's Giving Tree, that worked on one of
my learning demos, but this Comments notifier does not work on any of
my current sites, even though mailer is correctly conigured and send
from other forms just fine. Here what the log says, there seems to be
no command for the mailer at all:
Processing CommentsController#create (for 69.111.133.33 at 2010-03-25
10:27:03) [POST]
Parameters: {"comment"=>{"spam_answer"=>"maps", "author"=>"Alexis
Masters", "content"=>"Testing the notifier",
"valid_spam_answer"=>"7e94476d62556cc8501e3df5b8d6470d",
"author_email"=>"[email protected]", "author_url"=>""},
"submit"=>"Save Comment", "url"=>["blog", "2010", "03", "22", "protect-
this-woman"], "action"=>"create", "controller"=>"comments"}
Redirected to
http://www.womensgivingtree.org/blog/2010/03/22/protect-this-woman/comments#comment-20
Completed in 274ms (DB: 15) | 302 Found
[http://www.womensgivingtree.org/blog/2010/03/22/protect-this-woman/comments
]
Processing CommentsController#index (for 69.111.133.33 at 2010-03-25
10:27:03) [GET]
Parameters: {"url"=>["blog", "2010", "03", "22", "protect-this-
woman"], "action"=>"index", "controller"=>"comments"}
Completed in 2137ms (View: 1, DB: 56) | 200 OK
[http://www.womensgivingtree.org/blog/2010/03/22/protect-this-woman/comments
]
~ Alexis
=
On Mar 25, 2010, at 10:09 AM, banane wrote:
> Check your development (or production) log and see if you find a
> connection error to your SMTP. That's doubtless what the issue is.
> Then, you can tweak the settings until you get it right.
>
> I have a post re: how to setup mailer here, with troubleshooting tips:
>
> http://www.banane.com/2009/10/27/radiant-mailer-extension-installation-basics/
>
> Check the bottom part for setting up your SMTP settings.
>
> Anna
>
> On Wed, Mar 24, 2010 at 4:57 PM, Jim Gay wrote:
>> It's working fine for me.
>>
>> These are my pertinent settings, and I have action_mailer loaded in
>> the environment.rb
>>
>> Notification from [email protected]
>> Notification site name www.site.com
>> Notification to [email protected]
>> Notify creator true
>> Notify unapproved true
>>
>>
>> On Mar 24, 2010, at 4:56 PM, Steven Southard wrote:
>>
>>> I've almost given up on this. It's crazy because I had it working
>>> once but after I updated or something for the life of me I can't
>>> make
>>> it send notifications. If someone has this worked out please
>>> chime in.
>>>
>>> Steven
>>>
>>>
>>>
>>> On Mar 23, 2010, at 5:01 PM, Alexis Masters wrote:
>>>
Hi again :-)
On the settings page, I see a number of settings under COMMENTS
that
indicate that the comments extension is supposed to send
notifications
whenever comments are submitted. I have always configured these
settings accordingly, but have never been able to get this aspect
of
the extension to work. Does anyone have comments notification
working?
If so, how did you make it happen?
~ Alexis
=
Alexis Masters, author
http://www.alexismasters.com
510 234-0027
>> ___
>> Radiant mailing list
>> Post: [email protected]
>> Search: http://radiantcms.org/mailing-list/search/
>> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>> Radiant: http://radiantcms.org
>> Extensions: http://ext.radiantcms.org
>>
> ___
> Radiant mailing list
> Post: [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> Radiant: http://radiantcms.org
> Extensions: http://ext.radiantcms.org
___
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org
Re: [Radiant] Comments Notification
Check your development (or production) log and see if you find a connection error to your SMTP. That's doubtless what the issue is. Then, you can tweak the settings until you get it right. I have a post re: how to setup mailer here, with troubleshooting tips: http://www.banane.com/2009/10/27/radiant-mailer-extension-installation-basics/ Check the bottom part for setting up your SMTP settings. Anna On Wed, Mar 24, 2010 at 4:57 PM, Jim Gay wrote: > It's working fine for me. > > These are my pertinent settings, and I have action_mailer loaded in the > environment.rb > > Notification from [email protected] > Notification site name www.site.com > Notification to [email protected] > Notify creator true > Notify unapproved true > > > On Mar 24, 2010, at 4:56 PM, Steven Southard wrote: > >> I've almost given up on this. It's crazy because I had it working >> once but after I updated or something for the life of me I can't make >> it send notifications. If someone has this worked out please chime in. >> >> Steven >> >> >> >> On Mar 23, 2010, at 5:01 PM, Alexis Masters wrote: >> >>> Hi again :-) >>> On the settings page, I see a number of settings under COMMENTS that >>> indicate that the comments extension is supposed to send notifications >>> whenever comments are submitted. I have always configured these >>> settings accordingly, but have never been able to get this aspect of >>> the extension to work. Does anyone have comments notification working? >>> If so, how did you make it happen? >>> ~ Alexis >>> = >>> Alexis Masters, author >>> http://www.alexismasters.com >>> 510 234-0027 >>> > ___ > Radiant mailing list > Post: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > List Site: http://lists.radiantcms.org/mailman/listinfo/radiant > Radiant: http://radiantcms.org > Extensions: http://ext.radiantcms.org > ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ List Site: http://lists.radiantcms.org/mailman/listinfo/radiant Radiant: http://radiantcms.org Extensions: http://ext.radiantcms.org
Re: [Radiant] Comments Notification
It's working fine for me. These are my pertinent settings, and I have action_mailer loaded in the environment.rb Notification from [email protected] Notification site name www.site.com Notification to [email protected] Notify creator true Notify unapproved true On Mar 24, 2010, at 4:56 PM, Steven Southard wrote: > I've almost given up on this. It's crazy because I had it working > once but after I updated or something for the life of me I can't make > it send notifications. If someone has this worked out please chime in. > > Steven > > > > On Mar 23, 2010, at 5:01 PM, Alexis Masters wrote: > >> Hi again :-) >> On the settings page, I see a number of settings under COMMENTS that >> indicate that the comments extension is supposed to send notifications >> whenever comments are submitted. I have always configured these >> settings accordingly, but have never been able to get this aspect of >> the extension to work. Does anyone have comments notification working? >> If so, how did you make it happen? >> ~ Alexis >> = >> Alexis Masters, author >> http://www.alexismasters.com >> 510 234-0027 >> ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ List Site: http://lists.radiantcms.org/mailman/listinfo/radiant Radiant: http://radiantcms.org Extensions: http://ext.radiantcms.org
Re: [Radiant] Comments Notification
I've almost given up on this. It's crazy because I had it working once but after I updated or something for the life of me I can't make it send notifications. If someone has this worked out please chime in. Steven On Mar 23, 2010, at 5:01 PM, Alexis Masters wrote: > Hi again :-) > On the settings page, I see a number of settings under COMMENTS that > indicate that the comments extension is supposed to send notifications > whenever comments are submitted. I have always configured these > settings accordingly, but have never been able to get this aspect of > the extension to work. Does anyone have comments notification working? > If so, how did you make it happen? > ~ Alexis > = > Alexis Masters, author > http://www.alexismasters.com > 510 234-0027 > > > > ___ > Radiant mailing list > Post: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > List Site: http://lists.radiantcms.org/mailman/listinfo/radiant > Radiant: http://radiantcms.org > Extensions: http://ext.radiantcms.org ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ List Site: http://lists.radiantcms.org/mailman/listinfo/radiant Radiant: http://radiantcms.org Extensions: http://ext.radiantcms.org
Re: [Radiant] comments and Nokogiri
Oh you're so smart. Someone might put a note saying only sanitize
1.0.8 'cuz 1.1.0 does not work.
Steven
On Jan 27, 2010, at 4:07 PM, Jim Gay wrote:
> Try down grading to the 1.0.8 gem of sanitize
> http://github.com/rgrove/sanitize/blob/master/HISTORY#L26-33
>
>
>
> On Jan 27, 2010, at 4:21 PM, Steven Southard wrote:
>
>> I had put that in there already but it didn't make any difference. I
>> tried removing comments and reinstalling and that didn't help either.
>> I'm using sanitize 1.1.0 I doubt that has much to do with the issue.
>> Google was little help. So everyone else just got it up and running
>> fine, I'm the only one?
>>
>>
>> On Jan 27, 2010, at 1:24 PM, Jim Gay wrote:
>>
>>> I'll try it out when I have time, but can you try adding
>>>
>>> config.gem 'sanitize'
>>>
>>> to your environment.
>>>
>>> On Jan 27, 2010, at 2:21 PM, Steven Southard wrote:
>>>
It is a new build not a upgrade. I'm not sure what might have gone
wrong. I already had that file so initialize didn't do anything
new.
On Jan 27, 2010, at 8:41 AM, Jim Gay wrote:
> I haven't had time to look into this, but sanitize was added to
> help
> clean up the content of comments.
> If you've upgraded from an earlier release, try also running
>
> rake radiant:extensions:comments:initialize
>
> This will add an initializer for you at config/initializers/
> sanitizer.rb
>
> Did you recently upgrade or is this a new installation of the
> extension?
>
>
> On Jan 27, 2010, at 2:19 AM, Steven Southard wrote:
>
>> So does this mean that Nokogiri is required? That'd be fine
>> because
>> it's already loaded as a gem. Does it also have to be
>> configured?
>> What is going on here? Why was Sanitize added? Is this a
>> problem
>> using a modern version of comments with 0.8.1? Maybe I
>> installed
>> improperly?
>>
>>
>>
>> On Jan 26, 2010, at 12:20 PM, Steven Southard wrote:
>>
>>>
>>> I'm trying to use comments with radiant 0.8.1 and I get error
>>> when I
>>> post a comment.
>>>
>>> Not sure how to fix this:
>>>
>>>
>>>
>>> Processing CommentsController#create (for 70.184.255.186 at
>>> 2010-01-26
>>> 18:11:07) [POST]
>>> Parameters: {"submit"=>"Save Comment", "url"=>["phxated", "a-
>>> few-
>>> notes-about-the-arizona-republic"], "action"=>"create",
>>> "controller"=>"comments", "comment"=>{"filter_id"=>"Markdown",
>>> "author"=>"steven Southard",
>>> "valid_spam_answer"=>"c395246f710b0e2c86b7ed82f7f56ce3",
>>> "content"=>"testing", "author_email"=>"[email protected]",
>>> "spam_answer"=>"thursday", "author_url"=>""}}
>>>
>>> NameError (uninitialized constant
>>> Nokogiri::HTML::DocumentFragment):
>>> sanitize (1.1.0) [v] lib/sanitize.rb:59:in `clean!'
>>> sanitize (1.1.0) [v] lib/sanitize.rb:53:in `clean'
>>> sanitize (1.1.0) [v] lib/sanitize.rb:147:in `clean'
>>> vendor/extensions/comments/app/models/comment.rb:82:in
>>> `apply_filter'
>>> vendor/extensions/comments/app/controllers/
>>> comments_controller.rb:
>>> 18:in `create'
>>> vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:19:in
>>> `process'
>>>
>>> Rendering /users/home/stevenso/domains/phxated.com/radiant/
>>> public/
>>> 500.html (500 Internal Server Error)
>
>
> Jim Gay
> http://www.saturnflyer.com
>>> ___
>>> Radiant mailing list
>>> Post: [email protected]
>>> Search: http://radiantcms.org/mailing-list/search/
>>> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>>> Radiant: http://radiantcms.org
>>> Extensions: http://ext.radiantcms.org
>>
>> ___
>> Radiant mailing list
>> Post: [email protected]
>> Search: http://radiantcms.org/mailing-list/search/
>> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>> Radiant: http://radiantcms.org
>> Extensions: http://ext.radiantcms.org
>
> ___
> Radiant mailing list
> Post: [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> Radiant: http://radiantcms.org
> Extensions: http://ext.radiantcms.org
___
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org
Re: [Radiant] comments and Nokogiri
Try down grading to the 1.0.8 gem of sanitize
http://github.com/rgrove/sanitize/blob/master/HISTORY#L26-33
On Jan 27, 2010, at 4:21 PM, Steven Southard wrote:
> I had put that in there already but it didn't make any difference. I
> tried removing comments and reinstalling and that didn't help either.
> I'm using sanitize 1.1.0 I doubt that has much to do with the issue.
> Google was little help. So everyone else just got it up and running
> fine, I'm the only one?
>
>
> On Jan 27, 2010, at 1:24 PM, Jim Gay wrote:
>
>> I'll try it out when I have time, but can you try adding
>>
>> config.gem 'sanitize'
>>
>> to your environment.
>>
>> On Jan 27, 2010, at 2:21 PM, Steven Southard wrote:
>>
>>> It is a new build not a upgrade. I'm not sure what might have gone
>>> wrong. I already had that file so initialize didn't do anything new.
>>>
>>>
>>> On Jan 27, 2010, at 8:41 AM, Jim Gay wrote:
>>>
I haven't had time to look into this, but sanitize was added to help
clean up the content of comments.
If you've upgraded from an earlier release, try also running
rake radiant:extensions:comments:initialize
This will add an initializer for you at config/initializers/
sanitizer.rb
Did you recently upgrade or is this a new installation of the
extension?
On Jan 27, 2010, at 2:19 AM, Steven Southard wrote:
> So does this mean that Nokogiri is required? That'd be fine
> because
> it's already loaded as a gem. Does it also have to be configured?
> What is going on here? Why was Sanitize added? Is this a problem
> using a modern version of comments with 0.8.1? Maybe I installed
> improperly?
>
>
>
> On Jan 26, 2010, at 12:20 PM, Steven Southard wrote:
>
>>
>> I'm trying to use comments with radiant 0.8.1 and I get error
>> when I
>> post a comment.
>>
>> Not sure how to fix this:
>>
>>
>>
>> Processing CommentsController#create (for 70.184.255.186 at
>> 2010-01-26
>> 18:11:07) [POST]
>> Parameters: {"submit"=>"Save Comment", "url"=>["phxated", "a-few-
>> notes-about-the-arizona-republic"], "action"=>"create",
>> "controller"=>"comments", "comment"=>{"filter_id"=>"Markdown",
>> "author"=>"steven Southard",
>> "valid_spam_answer"=>"c395246f710b0e2c86b7ed82f7f56ce3",
>> "content"=>"testing", "author_email"=>"[email protected]",
>> "spam_answer"=>"thursday", "author_url"=>""}}
>>
>> NameError (uninitialized constant
>> Nokogiri::HTML::DocumentFragment):
>> sanitize (1.1.0) [v] lib/sanitize.rb:59:in `clean!'
>> sanitize (1.1.0) [v] lib/sanitize.rb:53:in `clean'
>> sanitize (1.1.0) [v] lib/sanitize.rb:147:in `clean'
>> vendor/extensions/comments/app/models/comment.rb:82:in
>> `apply_filter'
>> vendor/extensions/comments/app/controllers/comments_controller.rb:
>> 18:in `create'
>> vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:19:in
>> `process'
>>
>> Rendering /users/home/stevenso/domains/phxated.com/radiant/public/
>> 500.html (500 Internal Server Error)
Jim Gay
http://www.saturnflyer.com
>> ___
>> Radiant mailing list
>> Post: [email protected]
>> Search: http://radiantcms.org/mailing-list/search/
>> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>> Radiant: http://radiantcms.org
>> Extensions: http://ext.radiantcms.org
>
> ___
> Radiant mailing list
> Post: [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> Radiant: http://radiantcms.org
> Extensions: http://ext.radiantcms.org
___
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org
Re: [Radiant] comments and Nokogiri
I had put that in there already but it didn't make any difference. I
tried removing comments and reinstalling and that didn't help either.
I'm using sanitize 1.1.0 I doubt that has much to do with the issue.
Google was little help. So everyone else just got it up and running
fine, I'm the only one?
On Jan 27, 2010, at 1:24 PM, Jim Gay wrote:
> I'll try it out when I have time, but can you try adding
>
> config.gem 'sanitize'
>
> to your environment.
>
> On Jan 27, 2010, at 2:21 PM, Steven Southard wrote:
>
>> It is a new build not a upgrade. I'm not sure what might have gone
>> wrong. I already had that file so initialize didn't do anything new.
>>
>>
>> On Jan 27, 2010, at 8:41 AM, Jim Gay wrote:
>>
>>> I haven't had time to look into this, but sanitize was added to help
>>> clean up the content of comments.
>>> If you've upgraded from an earlier release, try also running
>>>
>>> rake radiant:extensions:comments:initialize
>>>
>>> This will add an initializer for you at config/initializers/
>>> sanitizer.rb
>>>
>>> Did you recently upgrade or is this a new installation of the
>>> extension?
>>>
>>>
>>> On Jan 27, 2010, at 2:19 AM, Steven Southard wrote:
>>>
So does this mean that Nokogiri is required? That'd be fine
because
it's already loaded as a gem. Does it also have to be configured?
What is going on here? Why was Sanitize added? Is this a problem
using a modern version of comments with 0.8.1? Maybe I installed
improperly?
On Jan 26, 2010, at 12:20 PM, Steven Southard wrote:
>
> I'm trying to use comments with radiant 0.8.1 and I get error
> when I
> post a comment.
>
> Not sure how to fix this:
>
>
>
> Processing CommentsController#create (for 70.184.255.186 at
> 2010-01-26
> 18:11:07) [POST]
> Parameters: {"submit"=>"Save Comment", "url"=>["phxated", "a-few-
> notes-about-the-arizona-republic"], "action"=>"create",
> "controller"=>"comments", "comment"=>{"filter_id"=>"Markdown",
> "author"=>"steven Southard",
> "valid_spam_answer"=>"c395246f710b0e2c86b7ed82f7f56ce3",
> "content"=>"testing", "author_email"=>"[email protected]",
> "spam_answer"=>"thursday", "author_url"=>""}}
>
> NameError (uninitialized constant
> Nokogiri::HTML::DocumentFragment):
> sanitize (1.1.0) [v] lib/sanitize.rb:59:in `clean!'
> sanitize (1.1.0) [v] lib/sanitize.rb:53:in `clean'
> sanitize (1.1.0) [v] lib/sanitize.rb:147:in `clean'
> vendor/extensions/comments/app/models/comment.rb:82:in
> `apply_filter'
> vendor/extensions/comments/app/controllers/comments_controller.rb:
> 18:in `create'
> vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:19:in
> `process'
>
> Rendering /users/home/stevenso/domains/phxated.com/radiant/public/
> 500.html (500 Internal Server Error)
>>>
>>>
>>> Jim Gay
>>> http://www.saturnflyer.com
> ___
> Radiant mailing list
> Post: [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> Radiant: http://radiantcms.org
> Extensions: http://ext.radiantcms.org
___
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org
Re: [Radiant] comments and Nokogiri
I'll try it out when I have time, but can you try adding
config.gem 'sanitize'
to your environment.
On Jan 27, 2010, at 2:21 PM, Steven Southard wrote:
> It is a new build not a upgrade. I'm not sure what might have gone
> wrong. I already had that file so initialize didn't do anything new.
>
>
> On Jan 27, 2010, at 8:41 AM, Jim Gay wrote:
>
>> I haven't had time to look into this, but sanitize was added to help
>> clean up the content of comments.
>> If you've upgraded from an earlier release, try also running
>>
>> rake radiant:extensions:comments:initialize
>>
>> This will add an initializer for you at config/initializers/
>> sanitizer.rb
>>
>> Did you recently upgrade or is this a new installation of the
>> extension?
>>
>>
>> On Jan 27, 2010, at 2:19 AM, Steven Southard wrote:
>>
>>> So does this mean that Nokogiri is required? That'd be fine because
>>> it's already loaded as a gem. Does it also have to be configured?
>>> What is going on here? Why was Sanitize added? Is this a problem
>>> using a modern version of comments with 0.8.1? Maybe I installed
>>> improperly?
>>>
>>>
>>>
>>> On Jan 26, 2010, at 12:20 PM, Steven Southard wrote:
>>>
I'm trying to use comments with radiant 0.8.1 and I get error when I
post a comment.
Not sure how to fix this:
Processing CommentsController#create (for 70.184.255.186 at
2010-01-26
18:11:07) [POST]
Parameters: {"submit"=>"Save Comment", "url"=>["phxated", "a-few-
notes-about-the-arizona-republic"], "action"=>"create",
"controller"=>"comments", "comment"=>{"filter_id"=>"Markdown",
"author"=>"steven Southard",
"valid_spam_answer"=>"c395246f710b0e2c86b7ed82f7f56ce3",
"content"=>"testing", "author_email"=>"[email protected]",
"spam_answer"=>"thursday", "author_url"=>""}}
NameError (uninitialized constant Nokogiri::HTML::DocumentFragment):
sanitize (1.1.0) [v] lib/sanitize.rb:59:in `clean!'
sanitize (1.1.0) [v] lib/sanitize.rb:53:in `clean'
sanitize (1.1.0) [v] lib/sanitize.rb:147:in `clean'
vendor/extensions/comments/app/models/comment.rb:82:in
`apply_filter'
vendor/extensions/comments/app/controllers/comments_controller.rb:
18:in `create'
vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:19:in `process'
Rendering /users/home/stevenso/domains/phxated.com/radiant/public/
500.html (500 Internal Server Error)
>>
>>
>> Jim Gay
>> http://www.saturnflyer.com
___
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org
Re: [Radiant] comments and Nokogiri
It is a new build not a upgrade. I'm not sure what might have gone
wrong. I already had that file so initialize didn't do anything new.
On Jan 27, 2010, at 8:41 AM, Jim Gay wrote:
> I haven't had time to look into this, but sanitize was added to help
> clean up the content of comments.
> If you've upgraded from an earlier release, try also running
>
> rake radiant:extensions:comments:initialize
>
> This will add an initializer for you at config/initializers/
> sanitizer.rb
>
> Did you recently upgrade or is this a new installation of the
> extension?
>
>
> On Jan 27, 2010, at 2:19 AM, Steven Southard wrote:
>
>> So does this mean that Nokogiri is required? That'd be fine because
>> it's already loaded as a gem. Does it also have to be configured?
>> What is going on here? Why was Sanitize added? Is this a problem
>> using a modern version of comments with 0.8.1? Maybe I installed
>> improperly?
>>
>>
>>
>> On Jan 26, 2010, at 12:20 PM, Steven Southard wrote:
>>
>>>
>>> I'm trying to use comments with radiant 0.8.1 and I get error when I
>>> post a comment.
>>>
>>> Not sure how to fix this:
>>>
>>>
>>>
>>> Processing CommentsController#create (for 70.184.255.186 at
>>> 2010-01-26
>>> 18:11:07) [POST]
>>> Parameters: {"submit"=>"Save Comment", "url"=>["phxated", "a-few-
>>> notes-about-the-arizona-republic"], "action"=>"create",
>>> "controller"=>"comments", "comment"=>{"filter_id"=>"Markdown",
>>> "author"=>"steven Southard",
>>> "valid_spam_answer"=>"c395246f710b0e2c86b7ed82f7f56ce3",
>>> "content"=>"testing", "author_email"=>"[email protected]",
>>> "spam_answer"=>"thursday", "author_url"=>""}}
>>>
>>> NameError (uninitialized constant Nokogiri::HTML::DocumentFragment):
>>> sanitize (1.1.0) [v] lib/sanitize.rb:59:in `clean!'
>>> sanitize (1.1.0) [v] lib/sanitize.rb:53:in `clean'
>>> sanitize (1.1.0) [v] lib/sanitize.rb:147:in `clean'
>>> vendor/extensions/comments/app/models/comment.rb:82:in
>>> `apply_filter'
>>> vendor/extensions/comments/app/controllers/comments_controller.rb:
>>> 18:in `create'
>>> vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:19:in `process'
>>>
>>> Rendering /users/home/stevenso/domains/phxated.com/radiant/public/
>>> 500.html (500 Internal Server Error)
>
>
> Jim Gay
> http://www.saturnflyer.com
>
>
>
>
> ___
> Radiant mailing list
> Post: [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> Radiant: http://radiantcms.org
> Extensions: http://ext.radiantcms.org
___
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org
Re: [Radiant] comments and Nokogiri
I haven't had time to look into this, but sanitize was added to help clean up
the content of comments.
If you've upgraded from an earlier release, try also running
rake radiant:extensions:comments:initialize
This will add an initializer for you at config/initializers/sanitizer.rb
Did you recently upgrade or is this a new installation of the extension?
On Jan 27, 2010, at 2:19 AM, Steven Southard wrote:
> So does this mean that Nokogiri is required? That'd be fine because
> it's already loaded as a gem. Does it also have to be configured?
> What is going on here? Why was Sanitize added? Is this a problem
> using a modern version of comments with 0.8.1? Maybe I installed
> improperly?
>
>
>
> On Jan 26, 2010, at 12:20 PM, Steven Southard wrote:
>
>>
>> I'm trying to use comments with radiant 0.8.1 and I get error when I
>> post a comment.
>>
>> Not sure how to fix this:
>>
>>
>>
>> Processing CommentsController#create (for 70.184.255.186 at 2010-01-26
>> 18:11:07) [POST]
>> Parameters: {"submit"=>"Save Comment", "url"=>["phxated", "a-few-
>> notes-about-the-arizona-republic"], "action"=>"create",
>> "controller"=>"comments", "comment"=>{"filter_id"=>"Markdown",
>> "author"=>"steven Southard",
>> "valid_spam_answer"=>"c395246f710b0e2c86b7ed82f7f56ce3",
>> "content"=>"testing", "author_email"=>"[email protected]",
>> "spam_answer"=>"thursday", "author_url"=>""}}
>>
>> NameError (uninitialized constant Nokogiri::HTML::DocumentFragment):
>> sanitize (1.1.0) [v] lib/sanitize.rb:59:in `clean!'
>> sanitize (1.1.0) [v] lib/sanitize.rb:53:in `clean'
>> sanitize (1.1.0) [v] lib/sanitize.rb:147:in `clean'
>> vendor/extensions/comments/app/models/comment.rb:82:in
>> `apply_filter'
>> vendor/extensions/comments/app/controllers/comments_controller.rb:
>> 18:in `create'
>> vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:19:in `process'
>>
>> Rendering /users/home/stevenso/domains/phxated.com/radiant/public/
>> 500.html (500 Internal Server Error)
Jim Gay
http://www.saturnflyer.com
___
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org
Re: [Radiant] comments and Nokogiri
So does this mean that Nokogiri is required? That'd be fine because
it's already loaded as a gem. Does it also have to be configured?
What is going on here? Why was Sanitize added? Is this a problem
using a modern version of comments with 0.8.1? Maybe I installed
improperly?
On Jan 26, 2010, at 12:20 PM, Steven Southard wrote:
>
> I'm trying to use comments with radiant 0.8.1 and I get error when I
> post a comment.
>
> Not sure how to fix this:
>
>
>
> Processing CommentsController#create (for 70.184.255.186 at 2010-01-26
> 18:11:07) [POST]
> Parameters: {"submit"=>"Save Comment", "url"=>["phxated", "a-few-
> notes-about-the-arizona-republic"], "action"=>"create",
> "controller"=>"comments", "comment"=>{"filter_id"=>"Markdown",
> "author"=>"steven Southard",
> "valid_spam_answer"=>"c395246f710b0e2c86b7ed82f7f56ce3",
> "content"=>"testing", "author_email"=>"[email protected]",
> "spam_answer"=>"thursday", "author_url"=>""}}
>
> NameError (uninitialized constant Nokogiri::HTML::DocumentFragment):
> sanitize (1.1.0) [v] lib/sanitize.rb:59:in `clean!'
> sanitize (1.1.0) [v] lib/sanitize.rb:53:in `clean'
> sanitize (1.1.0) [v] lib/sanitize.rb:147:in `clean'
> vendor/extensions/comments/app/models/comment.rb:82:in
> `apply_filter'
> vendor/extensions/comments/app/controllers/comments_controller.rb:
> 18:in `create'
> vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:19:in `process'
>
> Rendering /users/home/stevenso/domains/phxated.com/radiant/public/
> 500.html (500 Internal Server Error)
> ___
> Radiant mailing list
> Post: [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> Radiant: http://radiantcms.org
> Extensions: http://ext.radiantcms.org
___
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org
Re: [Radiant] Comments Extension
On Mon, Dec 21, 2009 at 11:28 AM, Jim Gay wrote: > Use the "comments" snippet (note the "s") > "comment" assumes the presence of a Comment, which is what is setup in the > "comments" snippet. > Hi Jim, thanks very much for your answer. I've added the comments snippet but nothing happens. I guess I had a previous "comments" snippet, from another extension, check it's content: Comments snippet: http://spurrd.com/assets/126/comments.jpg"; /> http://disqus.com/forums/radiant/embed.js";> http://radiant.disqus.com/?url=ref";>View the discussion thread. http://disqus.com"; class="dsq-brlink">blog comments powered by Disqus Thanks very much, Cheers, -- Paula ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
Use the "comments" snippet (note the "s") "comment" assumes the presence of a Comment, which is what is setup in the "comments" snippet. On Dec 21, 2009, at 8:09 AM, María Paula Mariani wrote: > 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: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments / Page Attachments extensions troubles
OK I have comments installed a few places- one thing, did you clone the comments code into an extension directory called "comments"? I ask this because the error is looking at a page called: page_attachments_extension.rb, which is a page_attachments extension, not a comments one. So perhaps your error is with that extension, not comments. 2009/12/17 María Paula Mariani : > Hello! > > I was trying to install, again, comments extensions. The fact is that > I keep having this error message: > > Could not load extension from file: page_attachments_extension. > # > rake aborted! > uninitialized constant Sanitize > > I've tried to fix it adding > > require 'sanitize' > in comment.rb > > and > > config.gem > in environment.rb > > Any clues? > > Thanks very much, > > > -- > Paula > ___ > Radiant mailing list > Post: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
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 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 wrote: >> Got it Jim. Thanks. >> >> One other question. If I have a Markdown filtered page and I want to >> insert comment snippets like: 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 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 >>> 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 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 > 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 >> wrote: >> >>> 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 >>> 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 >>> 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 # >>> >> >>> >> 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: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
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 wrote: > Got it Jim. Thanks. > > One other question. If I have a Markdown filtered page and I want to > insert comment snippets like: 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 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 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 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 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 > wrote: > >> 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 >> 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 >> 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 # >> >> >> >> 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: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
Got it Jim. Thanks. One other question. If I have a Markdown filtered page and I want to insert comment snippets like: 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 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 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 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 >>> 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 wrote: > 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 > 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 > 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 # > >> > >> 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: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
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 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 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 >> 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 wrote: >>> 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 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 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 # >> >> 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: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] comments extension roadmap
On Mon, Nov 16, 2009 at 10:49 PM, Bernard Yu 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: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
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 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 > 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 wrote: >> >>> 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 >>> 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 >>> 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 # >>> >> >>> >> 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: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
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 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 wrote: > >> 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 >> 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 >> 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 # >> >> >> >> 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: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
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 wrote: > 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 > 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 > 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 # > >> > >> 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: [email protected] > >> Search: http://radiantcms.org/mailing-list/search/ > >> Site: http://lists.radiantcms.org/mailman/listinfo/radiant > >> > > ___ > > Radiant mailing list > > Post: [email protected] > > Search: http://radiantcms.org/mailing-list/search/ > > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > > > ___ > Radiant mailing list > Post: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/
Re: [Radiant] Comments Extension
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 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 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 # >> >> 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: [email protected] >> Search: http://radiantcms.org/mailing-list/search/ >> Site: http://lists.radiantcms.org/mailman/listinfo/radiant >> > ___ > Radiant mailing list > Post: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
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 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 # > > 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: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension and Notifications
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, [email protected] 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 > >> 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, 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: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension and Notifications
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 > 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, 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: [email protected] > > Search: http://radiantcms.org/mailing-list/search/ > > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > > > ___ > Radiant mailing list > Post: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension and Notifications
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, 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: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments extension
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 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 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 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: [email protected] >> Search: http://radiantcms.org/mailing-list/search/ >> Site: http://lists.radiantcms.org/mailman/listinfo/radiant >> > > ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments extension
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 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 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: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments extension
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 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: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
After looking at the code I figured out what I was doing wrong and got it working. It seems the Comments Extension does not like it when you attempt to post comments from the home page of the site. I do have one small question is there a way for me to skip the approval process? I'd rather they just be approved. I suppose I can edit the extension, however I was just hopping that was not necessary. Thanks, Bryce On Mon, Mar 2, 2009 at 5:38 PM, Bryce Klimoski wrote: > 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 wrote: > >> Hi Bryce >> >> Did you run the migration? >> >> Cheers, >> Mohit. >> 3/3/2009 | 1:43 AM. >> >> >> ___ >> Radiant mailing list >> Post: [email protected] >> Search: http://radiantcms.org/mailing-list/search/ >> Site: http://lists.radiantcms.org/mailman/listinfo/radiant >> > > ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
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 wrote: > Hi Bryce > > Did you run the migration? > > Cheers, > Mohit. > 3/3/2009 | 1:43 AM. > > > ___ > Radiant mailing list > Post: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
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: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
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 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: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
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: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
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 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: [email protected] >> Search: http://radiantcms.org/mailing-list/search/ >> Site: http://lists.radiantcms.org/mailman/listinfo/radiant > > ___ > Radiant mailing list > Post: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
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: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Re: Radiant-Comments
When I start the server and go to /admin/pages I get errors at the top saying: `index_head_view_comments' default partial not found! If you have comments/app/view/admin/page change it to "pages". Steven That worked. Thank you Steven. Elle ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments order asc or desc
Has anyone added the option to comments:each for order? I've got comments working great so I thought they would also do a fine job of testimonials but the order needs to be reversed. Ordering comments by index or date would be very useful. Can anyone think of a way to do this with the available tags or does that option need to be added to comment_tags.rb? Steven ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] comments
Okay I found this was answered a month back. Thanks anyway. Steven On Feb 12, 2009, at 2:27 PM, Steven Southard wrote: I tried to change versions of the extensions comments and I had a few problems. Just replacing the comments files in vendor/extensions and running rake radiant:extensions:comments:update and rake radiant:extensions:comments:migrate kind of left me somewhere between the two versions. Any suggestions to clean this up? Steven ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] comments
I tried to change versions of the extensions comments and I had a few problems. Just replacing the comments files in vendor/extensions and running rake radiant:extensions:comments:update and rake radiant:extensions:comments:migrate kind of left me somewhere between the two versions. Any suggestions to clean this up? Steven ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Re: Re: radiant-comments-extension install glitch
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
#):
/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: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Re: Re: radiant-comments-extension install glitch
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
#):
/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: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Re: radiant-comments-extension install glitch
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: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Re: radiant-comments-extension install glitch
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: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] comments extension error / application error
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
#) on line #1 of admin/comments/
index.rhtml:
1: <%= @page.nil? ? "#{params[:status].titleize if
params[:status]} Comments" : "#[email protected]_count}
#{pluralize(@page.comments_count, "Comment")} on
#{link_to(@page.title, page_edit_url(@page.id))}" %>
2:
3:
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: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
___
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] comments extension error / application error
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
#) on line #1 of admin/comments/
index.rhtml:
1: <%= @page.nil? ? "#{params[:status].titleize if
params[:status]} Comments" : "#[email protected]_count}
#{pluralize(@page.comments_count, "Comment")} on
#{link_to(@page.title, page_edit_url(@page.id))}" %>
2:
3:
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: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
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: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
Mohit, My apologies for not responding sooner. 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. Sean Mohit Sindhwani wrote: 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 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: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
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 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: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments extension
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: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
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: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension
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: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Comments Extension (seancribbs version)
Arik, Wow, I can't believe anyone actually tried that. It was VERY incomplete, thus I didn't really announce it. Use Ryan's if you want something actually functional. 0.7 will be the blogging release (sorry, not for a while yet), so we'll probably cook something up based on Ryan's for that release. Sean Arik Jones wrote: I recently exported Sean Cribbs' Comments extension and realized that there are absolutely no view files provided. Sean, was this intentional? ___ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
