Neil Bye wrote in post #994040:
> Frederick Cheung wrote in post #994032:
>
>>
>> Check the parameters you get in your controller - you'll probably need
>> to use params[:comment_id] rather than params[:id]
>>
>> Fred
>
> Tried params[:comment_id]
>
> It goes to /comments/1/subcomments and says:
>
> try {
> window.location.reload();
> } catch (e) { alert('RJS error:\n\n' + e.toString());
> alert('window.location.reload();'); throw e }
>
> Does this mean its gone through and found another error.
>
> ?????????????????????
>
> Neil

I was right it did go through. The mystery js must have come from

render :update do |page|
      page.reload
    end
Is that because in the comment creator I used form_for Remote = true ?

Anyway if I relpace the above with a simple redirect it works.

Thanks for you patient help.

Neil

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to