Comments extension

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 !

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

Thank you, that works perfectly.

Note to other users, I added this line:

@page.request = request

to the “find_page” method in
vendor/extensions/comments/app/controllers/comments_controller.rb

Gert Jørgensen wrote:

Thank you, that works perfectly.

Note to other users, I added this line:

@page.request = request

to the “find_page” method in
vendor/extensions/comments/app/controllers/comments_controller.rb

Hi Gert,

Could I urge you to write up a brief article on how to use the Comments
extension and add it to the Summer Reboot[1] documentation project? It
would be a great help to all! Examples of an articles for extensions:
http://wiki.radiantcms.org/Copy_and_Move and
http://wiki.radiantcms.org/Reorder - no screenshots are necessary. I’ll
add them later when I get the time.

Cheers
Mohit.

[1] http://wiki.radiantcms.org/Summer_Reboot

Mohit S. wrote:

Cheers
Mohit.

[1] http://wiki.radiantcms.org/Summer_Reboot
I am extremely sorry - I have no idea why 4 copies of the email went
out! Apologies, apologies. I’m sure I didn’t send it that way! I
thought I had canceled the first mail (which was incomplete) - again,
sorry for what looks like a blast!

Cheers,
Mohit.
9/11/2008 | 2:05 AM.

Gert Jørgensen wrote:

Thank you, that works perfectly.

Note to other users, I added this line:

@page.request = request

to the “find_page” method in
vendor/extensions/comments/app/controllers/comments_controller.rb

Hi Gert,

Could I urge you to write up a brief article on how to use the Comments
extension and add it to the Summer Reboot[1] documentation project? It
would be a great help to all! Examples of an articles for extensions:
http://wiki.radiantcms.org/Copy_and_Move and
http://wiki.radiantcms.org/Reorder - no screenshots are necessary. I’ll
add them later when I get the time.

Thanks very much!
Cheers
Mohit.

[1] http://wiki.radiantcms.org/Summer_Reboot

Hi - yes I’ll try to write it down - have been thinking of doing
something for the reboot and this might be a good start.

Gert Jørgensen wrote:

Hi - yes I’ll try to write it down - have been thinking of doing
something for the reboot and this might be a good start.

Thanks Gert! Really appreciate the effort :slight_smile:

Cheers,
Mohit.
9/11/2008 | 3:16 AM.

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

| Privacy Policy | Terms of Service | Remote Ruby Jobs