Here are eight things my team has found to be true after working with Cucumber for about 6 months.
hat's the dirty little secret of our industry; green screen apps are usually pretty darn fast. They aren't...
On any page accessed with SSL, all Ajax requests must use SSL, or they will fail. To make this happen...
decided to go fixtureless with Shoulda + Factory Girl. All good, except one problem. Slow as fuck tests. So here’s...
Even though the gradual engagement meme has been around for a while, and everyone just hates signup forms, they just...
The Juggernaut plugin for Ruby on Rails aims to revolutionize your Rails app by letting the server initiate a connection and push data to the client. In other words your...
MailStyle allows you to write the css for your html emails as you normally would, then writes the styles inline...
Rails 2.3 has a ton of really nice functionality locked up in monolithic components. I’ve posted quite a bit about how we’ve opened up a lot of that...
...of ActionController. ActiveModel is another way we’ve exposed useful functionality to you in Rails...
Info on install database_cleaner.
It occurred to me that many Rails/Passenger/Apache applications may have caching set up in a way that it appears to be caching, when it is not actually caching...
Where there was once a consistent API to manipulate and hook into the lifecycle of a persistent object, plugins must...
This will only work with warnings that go through ActiveSupport and only in Rails 3.0 or higher...
Starting from 4.1, Rails automatically detects the inverse of an association, based on heuristics. Unfortunately, it does not seem to notify you when it fails to infer the :inverse_of...
In FactoryBot factories, Rails' file_fixture is not available by default. To enable it, include a support module from rspec-rails: FactoryBot::SyntaxRunner.include(RSpec::Rails::FileFixtureSupport) That includes ActiveSupport::Testing...
Rails' params hash contains any request parameters (URL parameters or request payload) as well as routing parameters like :controller, :action, or :id. To access only URL parameters, use request.query_parameters...
Rails 5 will introduce ActiveRecord::Relation#or. On Rails 4 and 3.2 you can use the activerecord_any_of gem which seems to be free of ugly hacks and nicely...
After starting the Rails server in a freshly generated Rails 3.1 project you could see an error message such as /usr/lib/ruby/gems/1.8/gems/execjs-1.3.0/lib/execjs/runtimes.rb:50:in `autodetect': Could not find a JavaScript runtime...
Don't write resources :people, :concerns => :trashable Write resources :people do concerns :trashable end Why Writing a controller...
Put the following into config.ru in your Rails root folder: # Require your environment file to bootstrap Rails require ::File.dirname(__FILE__) + '/config/environment' # Dispatch the request run ActionController::Dispatcher.new Otherwise, your Rails...
In specs, the session never persists but is always a new object for each request. Data put into the session...