Selenium does not speak SSL because it uses WEBrick that doesn't. When you use Selenium for Cucumber scenarios that...
Rails guide that covers PostgreSQL-specific column types and usages for Active Record. You should especially keep in mind the special datatypes that PostgreSQL offers. \ Types like json and array...
If you have a FooController and also have a layout app/views/layouts/foo.html, Rails will use this without being told so. This is super convenient except never...
...similar flavor as AngularJS, but a lot less features and geared towards Ruby on Rails. The attached link leads to a tutorial for a small blog written with Rails / Batman.js...
We can now plug into every facet of the Rails jQuery UJS adapter, binding to custom events, and even customizing internal functions, without hacking or monkey-patching the rails.js file...
Thanks to habits engrained by Rails 2’s link_to_remote and remote_form_for, we expect that Rails 3 would also handle the AJAX response for our remote links...
In a great post about named routes in Rails, path vs. url, Viget Labs ponders which variant is best used. Most often we use foo_path, which when used in...
...Rails URL helpers will generate a relative path, where foo_url generates a full URL. In most cases the path makes most sense, but not always...
The Rails router has been written and rewritten at least four times2, including a recent rewrite for the upcoming Rails 3. The syntax is now more concise. But never mind...
...ve been made aware of people inside US Government organizations using my Ruby on Rails Security presentation as an excuse to limit Ruby on Rails adoption and projects inside those...
When you encouter an unsafe string that you actually made html_safe before, perhaps you called one of the following...
Learning Rails for the first time should be fun, and Rails for Zombies allows you to get your feet wet without having to worry about configuration. You'll watch five...
...videos, each followed by exercises where you'll be programming Rails in your browser...
The following code activates autoloading using ActiveSupport 3.x: require 'active_support' require 'active_support/dependencies' relative_load_paths = %w[app/controllers...
Phillip Koebbe from Ruby on Rails suggested inserting following code between the "bootstrap" and "initialize" sections of enviroment.rb. This hack fixes the problem. if Gem::VERSION >= "1.3.6" module Rails
When your Rails controller calls render, you can pass a :status option for the HTTP status code: render 'results', status: 400 All important status codes also have a symbol alias...
If you get an error message like that you are missing the Aspell files a specific language:
sudo gem install rails --version="=1.2.3" rails _1.2.3_ new-project-folder
When running migrations with rake db:migrate, there's the STEP and VERSION parameters that you can pass to nearly...
When you put a Rake task into lib/tasks, but running it fails with... Don't know how to build task...
If you’re testing the behavior of deprecated code in your Ruby project, the warning messages littered throughout your spec...
...your console prompt so you don't accidentally break production Officially supporting IRB (standard rails console) and pry (via pry-rails gem). Example: $ rails console Loading development environment (Rails...
From Rails 3.0.9, there is a method Hash#to_query that will turn a Hash into a query string: >> {:a => "a", :b => ["c", "d", "e"]}.to_query
sudo apt-get install unzip rake rails:freeze:edge RELEASE...
You probably need to activate X-Sendfile.
Very detailed guide to caching Ruby on Rails. Goes well with the official Rails guide on caching...