Erich Douglass's blog



Erich DouglassErich Douglass
Standup 12-21-2011: Where is my git history?
edit Posted by Erich Douglass on Wednesday December 21, 2011 at 09:19AM

Ask for Help

"Is there a good way to manage SQL views using Active Record?"

Check out the rails_sql_views gem.

"Can I move a file or directory with git without having the history becoming disconnected (i.e have to use --follow)?"

Because of the way git stores files, this isn't really possible. One workaround is to use filter-branch to rewrite history to make it look like the file was never moved. However, you'd have to be careful and ensure that no one pushes the pre-filtered history to the repo after it has changed.

Interesting Things

"It's not possible to disable 1-click purchasing on a Kindle device."

Unless you want to have a long chat with your credit card company, make sure you keep this in mind before letting a niece / nephew borrow your Kindle :)

Erich DouglassErich Douglass
Standup 12/20/2011: Why can't we all just get along
edit Posted by Erich Douglass on Tuesday December 20, 2011 at 09:22AM

Ask for Help

"Is there anyway to prevent Capybara from resetting the session in RSpec?"

Capybara seems to have a reset_session_after_each option. It may or may not be useful.