Displaying 1 result from an estimated 1 matches for "ratingtempl".
2006 Mar 10
4
Problem with ajax and textareas on firefox but works on IE
...#39;',:url => {:action => ''resetComment'', :factor =>
''Safety'', :rating => @reviewrating.safety}) %>
</td>
In my controller, the code looks like
def resetComment
@factor = params[:factor]
@rating = params[:rating]
@rt = Ratingtemplate.find(:first, :conditions=> ["factor = ? AND
rating = ?", @factor, @rating])
@comment = @rt.defaultcomment
render(:layout => false)
end
And finally, I have a resetComment.rhtml
<%= @comment %>
Any help on this would be greatly appreciated!
Daniel