Using uncountable resources is not recommended as it breaks Rails' magic, e.g. when using form_for. You'll always be better off using simple pluralizable resources. Rails automatically creates path...
...will refer to the show action: /sheep/:id. Solution As the linked article states, Rails creates a special _index_path for this scenario. Thus, you can simply call:
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...
...fix this issue. This patch is planned to be included in the next makandra Rails LTS release...
When writing Rails migrations to convert a string column to an integer you'd usually say: change_column :table_name, :column_name, :integer However, PostgreSQL will complain: PG::DatatypeMismatch: ERROR...
...it has always worked: NoMethodError: undefined method `allow_value' for # This is due to Rails 4.1 (specifically, Spring) revealing a weak point of shoulda-matchers -- jonleighton explains why. Solution
jQuery as new default Javascript library, streaming response support, attr_accessible with roles, prepared statements, easier migrations.
Leads to awesomeness and unicorns when used in production.
These two models can be used to access the posts and associated comments of a WordPress database.
Do that for noble reasons only.
...is (or will be) a best effort semi-static verifier for your Ruby on Rails projects. Delivered as a Ruby gem it provides a shell command task "railscheck" that you...
...can run against your Rails projects to test for a number of typical bugs, potential problems and inconsistencies...
Finish the remainder of the ActiveModel todo list (observers, callbacks, validations, scoping, and serialization) in addition to associations. Also wire...
Asynchronous JavaScript and CSS, also known as CSSHttpRequest, is a method of URI-encoding data in 2KB chunks split over...
How to rescue a project without losing your mind.
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...