Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

Justin Soliz's Profile

GitHub User: justinsoliz

Site: http://www.justinsoliz.com

Comments by Justin Soliz

Avatar

if you want controller specific scripts or stylesheets, you can do something like this:

ruby
javascript_include_tag params[:controller]
ruby
stylesheet_link_tag params[:controller]