RailsCasts Pro episodes are now free!

Learn more or hide this

Matias Niemelä's Profile

GitHub User: matsko

Site: yearofmoo.com

Comments by Matias Niemelä

Avatar

Just put :comment_type => :article, or :events, :photo in the routes as a parameter inside of the resources block and then setup a before filter to classify that value (params[:comment_type]).