Displaying 5 results from an estimated 5 matches for "review_id".
Did you mean:
review_
2007 Sep 23
9
Code reviews: my dumb use of acts_as_commentable (newbie)
...view, displayed on "show_review" action)
... other stuff on my review, then the comment fields ...
<fieldset>
<% form_for :review, :url=> { :action => "save_comment" } do |f| %>
<legend>Add Your Own Comment</legend>
<%= f.hidden_field :review_id %>
<p>
<label for="title">Title</label>
<%= f.text_field :new_comment_title, :size => 40 %>
</p>
<p>
<label for="comment">Body</label>
<%= f.text_field :new_comment_body,...
2006 May 01
2
Getting my schema straightened out
...t has an ''id'' field, and Review has a ''contentid''
field. Not all Content has a Review, but all Reviews have exactly one
Content.
How do I represent this? I''ve got a Review object, but if I say
"has_one :content" then it goes looking for a review_id key on my
content object, for which it has none. But if I say that Content
has_one :review, and Review :belongs_to content, then all I get when
loading a Review is a nil Content object. I think I''m probably on the
right track there, but missing a key bit of info.
Anybody able to hel...
2006 Feb 09
2
Polymorphic Associations
...; Client
has_many :reviewings, :as => :reviewable, :dependent => true
has_many :reviews, :through => :reviewings
end
==========
Review (table Reviews: id, rating, review)
==========
def Review < AR:B
has_many :reviewings
end
==========
Reviewing (table Reviewings: id, review_id, reviewable_id,
reviewable_type)
==========
def Reviewing < AR:B
belongs_to :review
belongs_to :reviewable, :polymorphic => true
end
==========
Now, within console:
===========
>> u = User.find(:first)
my user stuff
>> r = Review.find(:first)
my review stuff
>> u.revie...
2011 Oct 10
1
Text Mining with Facebook Reviews (XML and FQL)
Hello,
I am trying to use XML package to download Facebook reviews in the following
way:
require(XML)
mydata.vectors <- character(0)
Qword <- URLencode('#IBM')
QUERY <- paste('SELECT review_id, message, rating from review where message
LIKE %',Qword,'%',sep='')
Facebook_url = paste('https://api.facebook.com/method/fql.query?query=
',QUERY,sep='')
mydata.xml <- xmlParseDoc(Facebook_url, asText=F)
mydata.vector <- xpathSApply(mydata.xml, '//s:...
2006 Feb 08
1
Adding children via small subform
I''ve read AWDR and especially the part concerning adding child
line_items to an order. Unfortunately I want to do my process in
reverse and in doing what I thought would work I get a null object error
when trying to append the children to the parent.
This is a _major_ stumbling block in my Rails use as almost every one of
my projects has needed this so its a pretty vital problem I need