blog.innerewut.de

...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...

makandra dev
gist.github.com

When you encouter an unsafe string that you actually made html_safe before, perhaps you called one of the following...

makandra dev
railsforzombies.org

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...

redmine.org

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

guides.rubyonrails.org

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

guides.rubyonrails.org

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...

justinfrench.com

If you’re testing the behavior of deprecated code in your Ruby project, the warning messages littered throughout your spec...

github.com

...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...

stackoverflow.com

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.

nateberkopec.com

Very detailed guide to caching Ruby on Rails. Goes well with the official Rails guide on caching...

gaslight.co

We’ve been working on one of our first Angular projects with a Rails backend. It’s been a great experience. I wanted to share a few things we learned...

...that we hope are helpful to others building Angular on Rails apps...

blog.remarkablelabs.com

With the impending release of Ruby on Rails 4, it looks like a lot of developers will be updating their web applications in the coming new year.

...a series of blog posts going over everything you will need to know about Rails 4 for an effortless upgrade...

apidock.com

If you have an integer and want to use it to represent an element's position (like "1st" for 1...

Do you have page caching enabled for the development environment and there are cached pages lying around in public/?

blog.bigbinary.com

...is raised because your old database does not have a configured environment yet, which Rails 5 enforces. If this error occurs while migrating your parallel test databases, make sure to...

blog.bigbinary.com

Rails 5 migration classes look like this now: class CreateUsers < ActiveRecord::Migration[5.0] Mind the [5.0] at the end. They do this to evolve the ActiveRecord::Migration API without breaking...

nandovieira.com

...to store JSON data and choose the one that matches your use case best. Rails 4.2 includes support for jsonb columns, too. The article outlines different ways on how to...

stackoverflow.com

Previously the assets group existed to avoid unintended compilation-on-demand in production. As Rails 4 doesn't behave like that anymore, it made sense to remove the asset group...