Nilay, 

Why did u use Feed and FeedLike model? The solution provided by Liz is good. 
You can pass binary values for updating the like and dislike value, instead of 
having two different models.

And definitely your code needs lot of cleanups. Google for code cleanups, 
refactoring in rails.

-Saurav

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/5dbff821-ae3d-40c0-a1c1-40c9e4704bab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to