Sign in through GitHub

Please read for an updated status on RailsCasts:

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]).