save_and_open_page
have_button(locator)| :w !sudo tee % - saves a file as sudo (password prompted) if you forgot to open with sudo in the first place |
| rm -R tmp/* | |
| if active record | |
| http://thinkingrails.blogspot.com/2007/06/rails-rake-tasks-reference.html | |
| rake db:sessions:clear |
| Binding a parametrized a non anonymous function to a button in jquery | |
| Say you have the function | |
| function buildDialog( parentId ){ | |
| alert(parentId); | |
| return false; | |
| } | |
| And the following link <a href="5" class="attach">Do Something</a> | |
| You can bind it to a like like |