git ls-files --deleted
To restore a deleted file (assuming the D is not yet commited)
git checkout where/the/file/was.ext
git ls-files --deleted
git checkout where/the/file/was.ext
assert_select_rjs :redirect_to, '/' |
ActionController::Assertions::SelectorAssertions#assert_select_rjs
don't know about :redirect_to
test_helper.rb
then I can assert by :redirect_to
nowmodule ActionController::Assertions::SelectorAssertions | |
RJS_STATEMENTS[:redirect_to] = "window\\.location\\.href = #{RJS_ANY_ID}" | |
end |
order = 'name' | |
order = ActiveRecord::Base.send(:reverse_sql_order, order) # => "name DESC" | |
order = ActiveRecord::Base.send(:reverse_sql_order, order) # => "name ASC" | |
order = ActiveRecord::Base.send(:reverse_sql_order, order) # => "name DESC" |
Only get, head, post, put, and delete requests are allowed.If you get this while/after editing your routes, then you'll need to restart your local server. Thanks to this guy.
#... | |
t.column :record_status, 'char(1)', :default => 'E' | |
#... |
Only a Sith deal in absolutes
Do, or do not. There is no try.