On Mon, Aug 30, 2010 at 2:48 PM, Bill Walton <bwalton.im@gmail.com> wrote:
> Speaking for myself, I am criticizing marnen's obnoxious and
> judgmental posts. A post such as yours that takes the time to explain
> to a poster why one approach is favored over another is welcome,
> "that's bad" is simply an unsubstantiated opinion. If he's not going
> to provide assistance, he should either keep his mouth shut or be
> ready to be chastised / derided in the same manner he treats others.
Ditto.
--
Greg Donald
destiney.com | gregdonald.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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Mon, Aug 30, 2010 at 2:19 PM, Robert Walker <lists@ruby-forum.com> wrote:
> Marnen Laibow-Koser wrote:
>> Bill Walton wrote:
>>> On Mon, Aug 30, 2010 at 11:24 AM, Greg Donald <gdonald@gmail.com> wrote:
>>>> On Mon, Aug 30, 2010 at 11:18 AM, Marnen Laibow-Koser
>>>> <lists@ruby-forum.com> wrote:
>>>>> I didn't say it was invalid HTML. �I said it was *bad practice*.
>>>>
>>>> Yeah, that's why it's in the spec, 'cause no one should use it.
>>>>
>>>> /rolls eyes
>>>
>>> +1. If only marnen were in charge.... ;-)
>>
>> The HTML 5 spec itself says <b> is only to be used as a last resort if
>> no other element is more appropriate. IMHO, that's never the case: even
>> if nothing more specific can be found, <span> is more appropriate than
>> <b>.
>
> I have to agree with Marnen. Are we criticizing people for emphasizing
> exactly what the HTML5 spec states now?
Speaking for myself, I am criticizing marnen's obnoxious and
judgmental posts. A post such as yours that takes the time to explain
to a poster why one approach is favored over another is welcome,
"that's bad" is simply an unsubstantiated opinion. If he's not going
to provide assistance, he should either keep his mouth shut or be
ready to be chastised / derided in the same manner he treats others.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Bulls eye! That was it
On Aug 30, 12:16 pm, Frederick Cheung <frederick.che...@gmail.com>
wrote:
> On Aug 30, 8:02 pm, badnaam <asitkmis...@gmail.com> wrote:
>
> > This is what I have
>
> > belongs_to :user, :counter_cache => true
> > belongs_to :vote_item, :counter_cache => true
> > belongs_to :vote_topic, :counter_cache => true
>
> > ##User model
>
> > def vote_for(vid, vtid)
> > Vote.create(:user_id => self.id, :vote_item_id =>
> > vid, :vote_topic_id => vtid)
> > end
>
> > def cancel_vote(vid, vtid)
> > Vote.find(:first, :select => "id", :conditions =>
> > ['vote_item_id = ? AND vote_topic_id = ? AND user_id = ?', vid, vtid,
> > self.id]).destroy
> > end
>
> > When a vote is created the votes_count in VoteItem and VoteTopic are
> > updated correctly. But when a vote is destroyed or cancelled the
> > counter is not decremented.
>
> Stab in the dark: because your select clause only includes id, rails
> doesn't know the user_id/vote_item_id/vote_topic_id and so doesn't
> know which user/vote_item/vote_topic to update.
>
> Fred
>
> > Please help
>
>
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.