Update rails dependency to version 4.0.1
Move flash notices inside the main container