mardi 3 février 2015

Rails 4 - Exclude page from part of application.html


Vote count:

0




In my application.html file I have a block of code that displays error messages up at the top of the page. I want to exclude this block of code from a certain page. How would I reference the specific page?


For example: if path != thankyou_path #codeblock end? What would the syntax be for rails to exclude a block of code from running on a certain page?



asked 34 secs ago

Moosa

183






Rails 4 - Exclude page from part of application.html

Aucun commentaire:

Enregistrer un commentaire