Some rails stuff.