add to your Gemfile
gem 'rspec-rails'
end
Be sure to bundle install after changing your Gemfile
add to your Gemfile
Be sure to bundle install after changing your Gemfile
Ran into an annoying chicken/egg involving deploying to Heroku with a shared database. It seems that Heroku isn't happy unless you have gem 'pg' in your Gemfile. If you are using the shared database and fail to have gem 'pg' in your Gemfile, you app actually deploys OK on Heroku but then generates an Application Error when you call a page. If you check the heroku logs you see something like this:
cd ~/Library/Application Support/TextMate/Bundles
git clone git://github.com/subtleGradient/javascript-tools.tmbundle.git
In Textmate, Bundles > Bundle Editor > Reload bundles
Now open a Javascript file and to Control-Shift V and choose "JSLint"
Also install Node.js
https://github.com/joyent/node/wiki/Installation
(Mac user can install using this package: https://sites.google.com/site/nodejsmacosx/)
A bit today about setting up and debugging Capybara with truncated fixtures. Capybara comes with an array of choices for a driver, the thing that actually runs your tests. You can emulate a user using a real browser (Firefox or Sarari), or you can emulate a headless browser.
Today I'm going to be focusing on setting this up with Selenium to have Firefox run your tests.
In IE7 to use the developer tools you must install IE Developer Toolbar, then to open it go here:
Tools (on the right-hand side) > Toolbars > Explorer Bar > IE Developer Tools
(This is so hard to find I had to make a picture)
In IE7 and IE8, you may wish to take important note of two buttons on the developer tools window.
I found that this was actually not a very good idea nor did it make my system faster. This will disable your computer's ability to use virtual memory.
To turn it back on
However, note the command-line tool "purge" (just one word) to free the inactive memory on your system.
Ruby's most commonly used method is probably each, an iterator that can act on an Array, Hash, Range, or any other array-like object. (It can also act on non-array like objects such as IO, in which case .each will iterate over each line).
There are four iterators built on top of each, called the Enumerable iterators. You can use them on any enumerable objects.
| Method | What it does |
|---|
Basic cheat sheet for me to help remember the new syntax of Rails 3. Check out the rubyonrails.org guide and also Rails 3 Upgrade Handbook
I got this error whenever I ran sudo apachectl restart starting after a recent upgrade to 10.6.5:
After this reading this post1, I changed /usr/sbin/apachectl line 64 from this: to this:
References
1. deversus.com
When using App Loader, geting this error when trying to upload my zip file (happens right after you click "Send"):
"The CodeResources file must be a symbolic link to _CodeSignature/CodeResources"
Do this while at the root of your project: