How would you write the link_to so that it deletes the actual comment in the view and the controller. I got it to work for messages but for some reason, am having no luck with comments.
On Mon, Sep 8, 2008 at 3:15 AM, AssimovT <[EMAIL PROTECTED]> wrote: > > the second parameter to link_to is the path not and id.. should be > something like: > > profile_comments_path(@profile) or link to ur comments controller > > > Tair > > On Sep 8, 10:00 am, xxjack12xx <[EMAIL PROTECTED]> wrote: >> I tried that and it gives >> >> ActionView::TemplateError (undefined method `fixnum_path' for >> #<ActionView::Base:0x97c1074>) on line #18 >> of comments/_comment.html.erb: >> >> 18: <%= link_to "Delete", comment.id, :method >> => :delete, :confirm=>DELETE_CONFIRM %> >> >> On Sep 5, 9:41 pm, Jason Keenan <[EMAIL PROTECTED]> wrote: >> >> > <%= comment.id %> >> >> > is that what you meant?? >> >> > Jason :) >> > On 05/09/2008, at 11:57 PM, Adrian Houser wrote: >> >> > > How do you get the id number for a comment in the view. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lovd by Less" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/lovdbyless?hl=en Who loves ya baby? -~----------~----~----~----~------~----~------~--~---
