Minor changes to snippets and rails mode