Generate polymorphic URL in Rails
Contact me at LinkedIn  RailsZilla at Facebook  RailsZilla at twitter   google +1  Contact me at Xing  connect me at github

Generate polymorphic URL in Rails

Posted in Rails

In this example, I want to explain a best practice for Polymorphic URLs in Rails. I will show really bad things here as an illustrative example. Don’t worry, we will refactor the code later ;-) Let us assume that we have three models, Post, News and Comment. In most cases, a post has many comments […]

Tags: , , ,

Copyright © 2011-2018  - RailsZilla – Ruby on Rails tutorials, tips and tricks All rights reserved. | Imprint | Privacy