search for: comment_subject

Displaying 2 results from an estimated 2 matches for "comment_subject".

2006 Jul 05
2
RJS - Getting and Setting Form Element Values Question
...following in my controller with RJS. render :update do | page | subject = ''this is really something page[''posting_subject''].value = subject end And we sing and rejoice. But why can''t I do render :update do | page | page[''comment_subject''].value = page[''posting_subject''].value end At the Javascript level the error is that we get ${''posting_subject''}.value() instead of ${''posting_subject''}.value And value is not a function. So, how can I *get* a value of...
2006 Jul 08
1
reversing display order in for?
I am displaying some data on one of my pages by calling a for loop: for comment in @comments and then diplaying it: <%= link_to comment.send(''comment_subject''), :controller =>''comments'' , :action => ''show'', :id => comment, :class => ''comment'' %> Works great, but it displays things from oldest to newest.. Is there an easy way to get it to reverse the order so that the newes...