Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

Matias Niemelä's Profile

GitHub User: matsko


Comments by Matias Niemelä


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