Gang Of Coders
Home
About Us
Contact Us
All Ruby on-Rails Solutions on Gang of Coders
Total of 1623 Ruby on-Rails Solutions
How can I rename a database column in a Ruby on Rails migration?
Ruby on-Rails
Ruby on-Rails-3
Migration
Rename
Alter Table
How to understand nil vs. empty vs. blank in Ruby
Ruby on-Rails
Ruby
Why do people use Heroku when AWS is present? What distinguishes Heroku from AWS?
Ruby on-Rails
Heroku
Amazon Web-Services
How do I get the current absolute URL in Ruby on Rails?
Ruby on-Rails
Ruby
Url
Understanding the Rails Authenticity Token
Ruby on-Rails
Ruby
Authenticity Token
Getting error: Peer authentication failed for user "postgres", when trying to get pgsql working with rails
Ruby on-Rails
Postgresql
How to rollback a specific migration?
Ruby on-Rails
Schema
Database Schema
Rollback
Can't find the 'libpq-fe.h header when trying to install pg gem
Ruby on-Rails
Ruby on-Rails-3
Postgresql
Rails Postgresql
Pg
How to get a random number in Ruby
Ruby on-Rails
Ruby
Ruby on-Rails-3
Ruby on-Rails-4
Random
How to "pretty" format JSON output in Ruby on Rails
Ruby on-Rails
Ruby
Json
Pretty Print
How to drop columns using Rails migration
Ruby on-Rails
Ruby
Database
Activerecord
Rails Migrations
Difference between rake db:migrate db:reset and db:schema:load
Ruby on-Rails
Ruby
Database
Rake
How to use concerns in Rails 4
Ruby on-Rails
Ruby on-Rails-4
Dci
How to remove a key from Hash and get the remaining hash in Ruby/Rails?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Hashmap
Ruby Hash
Purge or recreate a Ruby on Rails database
Ruby on-Rails
Ruby on-Rails-3
Rake
Begin, Rescue and Ensure in Ruby?
Ruby on-Rails
Ruby
Exception
Exception Handling
Error Handling
Ruby on Rails Server options
Ruby on-Rails
Apache
Passenger
Mongrel
Postgres could not connect to server
Ruby on-Rails
Database
Postgresql
Macos
Homebrew
`require': no such file to load -- mkmf (LoadError)
Ruby on-Rails
Ubuntu
Rails DB Migration - How To Drop a Table?
Ruby on-Rails
Ruby on-Rails-3
Migration
Rollback
Drop Table
Error installing mysql2: Failed to build gem native extension
Mysql
Ruby on-Rails
Ruby
Rubygems
Mysql2
How to redirect to a 404 in Rails?
Ruby on-Rails
Ruby
Http
Http Status-Code-404
Undo scaffolding in Rails
Ruby on-Rails
Ruby
Scaffolding
Difference between string and text in rails?
Ruby on-Rails
How do I make a column unique and index it in a Ruby on Rails migration?
Ruby on-Rails
How can I call controller/view helper methods from the console in Ruby on Rails?
Ruby on-Rails
Console
What is the easiest way to duplicate an activerecord record?
Ruby on-Rails
Ruby
Rails Activerecord
In Ruby on Rails, what's the difference between DateTime, Timestamp, Time and Date?
Ruby on-Rails
Datetime
Date
Time
Timestamp
How do I handle too long index names in a Ruby on Rails ActiveRecord migration?
Ruby on-Rails
Indexing
Migration
Rails: How can I set default values in ActiveRecord?
Ruby on-Rails
Rails Activerecord
Rails 4: List of available datatypes
Ruby on-Rails
Ruby
Ruby on-Rails-4
Rails Activerecord
How do you write a migration to rename an ActiveRecord model and its table in Rails?
Ruby on-Rails
Migration
Rails Activerecord
How do I get the name of a Ruby class?
Ruby on-Rails
Ruby
Rails Activerecord
How can I specify a local gem in my Gemfile?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Rubygems
Bundler
Rails update_attributes without save?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Ruby on-Rails-4
Rails Activerecord
No route matches "/users/sign_out" devise rails 3
Ruby on-Rails
Ruby on-Rails-3
Devise
Routes
Can Rails Routing Helpers (i.e. mymodel_path(model)) be Used in Models?
Ruby on-Rails
Rails Routing
Helpermethods
What is the difference between <%, <%=, <%# and -%> in ERB in Rails?
Ruby on-Rails
Ruby
Templates
Erb
Rails I18n validation deprecation warning
Ruby on-Rails
Ruby
Ruby on-Rails-4
Deprecated
Rails I18n
Using Rails 3.1, where do you put your "page specific" JavaScript code?
Javascript
Ruby on-Rails
Ruby on-Rails-3.1
Asset Pipeline
Sprockets
Rails where condition using NOT NIL
Ruby on-Rails
Rails Activerecord
Arel
What does bundle exec rake mean?
Ruby on-Rails
Rake
Bundler
How to convert a ruby hash object to JSON?
Ruby on-Rails
Json
Ruby
Hashmap
How can I disable logging of asset pipeline (sprockets) messages in Ruby on Rails 3.1?
Ruby on-Rails
Ruby on-Rails-3
Asset Pipeline
Sprockets
Rails Sprockets
Rails migration for change column
Ruby on-Rails
Migration
Rails :include vs. :joins
Ruby on-Rails
Ruby
Database
Join
Rails Activerecord
Remove duplicate elements from array in Ruby
Ruby on-Rails
Arrays
Ruby
Duplicates
How do you delete an ActiveRecord object?
Ruby on-Rails
Rails Activerecord
Case statement with multiple values in each 'when' block
Ruby on-Rails
Ruby
Syntax
Switch Statement
Rails 4: before_filter vs. before_action
Ruby on-Rails
Ruby
Ruby on-Rails-4
Crud
How to define custom configuration variables in rails
Ruby on-Rails
Configuration
Rails: How to run `rails generate scaffold` when the model already exists?
Ruby on-Rails
Ruby on-Rails-3
Using fonts with Rails asset pipeline
Ruby on-Rails
Sass
Asset Pipeline
Font Face
Assets
How to run a single RSpec test?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Rspec
Add a reference column migration in Rails 4
Ruby on-Rails
Ruby on-Rails-4
Foreign Keys
Rails Activerecord
Rails Migrations
raw vs. html_safe vs. h to unescape html
Ruby on-Rails
Erb
How to find where a method is defined at runtime?
Ruby on-Rails
Ruby
Runtime
Methods
Definition
What is the best method of handling currency/money?
Ruby on-Rails
Ruby
Currency
@ variables in Ruby on Rails
Ruby on-Rails
Ruby
Variables
Rails: Check output of path helper from console
Ruby on-Rails
How do I parse JSON with Ruby on Rails?
Ruby on-Rails
Ruby
Json
Rails Root directory path?
Ruby on-Rails
What does "WARN Could not determine content-length of response body." mean and how to I get rid of it?
Ruby on-Rails
Ruby
Webrick
PG::ConnectionBad - could not connect to server: Connection refused
Ruby on-Rails
Ruby
Database
Postgresql
Database Connection
Ruby on Rails generates model field:type - what are the options for field:type?
Ruby on-Rails
Generator
Rails Activerecord
Float vs Decimal in ActiveRecord
Ruby on-Rails
Types
Floating Point
Decimal
Rails Activerecord
A cron job for rails: best practices?
Ruby on-Rails
Rake
Daemon
Cron
Runner
Rails server says port already used, how to kill that process?
Ruby on-Rails
Add a default value to a column through a migration
Ruby on-Rails
Ruby
Migration
Rails raw SQL example
Sql
Ruby on-Rails
how to permit an array with strong parameters
Ruby on-Rails
Arrays
Strong Parameters
Disable Rails SQL logging in console
Sql
Ruby on-Rails
Console
difference between collection route and member route in ruby on rails?
Ruby on-Rails
Ruby
Run a single migration file
Ruby on-Rails
Ruby
Migration
Ruby: What is the easiest way to remove the first element from an array?
Ruby on-Rails
Ruby
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
Ruby on-Rails
Ruby
Ssl
Authlogic
Facebook Graph-Api
rails 3.1.0 ActionView::Template::Error (application.css isn't precompiled)
Ruby on-Rails
Asset Pipeline
What is Rack middleware?
Ruby on-Rails
Ruby
Http
Web Applications
Rack
Best way to load module/class from lib folder in Rails 3?
Ruby on-Rails
Class
Module
Autoload
Ruby on-Rails-3
SSL Error When installing rubygems, Unable to pull data from 'https://rubygems.org/
Ruby on-Rails
Ruby
Ssl
Rvm
How to return an empty ActiveRecord relation?
Ruby on-Rails
Activerecord
Relation
Fully custom validation error message with Rails
Ruby on-Rails
Rails: Default sort order for a rails model?
Ruby on-Rails
Breaking up long strings on multiple lines in Ruby without stripping newlines
Ruby on-Rails
Ruby
What's the best manner of implementing a social activity stream?
Ruby on-Rails
Android Activity
Social Networking
Is Ruby pass by reference or by value?
Ruby on-Rails
Ruby
Pass by-Reference
Best way to add comments in erb
Ruby on-Rails
Ruby
Comments
Erb
Block Comments
Rails: #update_attribute vs #update_attributes
Ruby on-Rails
Callback
Update Attributes
bundle install fails with SSL certificate verification error
Ruby on-Rails
Ruby
Ssl
Rubygems
Bundler
Converting camel case to underscore case in ruby
Ruby on-Rails
Ruby
String
Formatting
Case Conversion
Rails: select unique values from a column
Ruby on-Rails
Activerecord
Rails - Could not find a JavaScript runtime?
Javascript
Ruby on-Rails
Ruby on-Rails-3
node.js
Ruby on-Rails-3.1
How is attr_accessible used in Rails 4?
Ruby on-Rails
Ruby on-Rails-4
Convert string to symbol-able in ruby
Ruby on-Rails
Ruby
How do I explicitly specify a Model's table-name mapping in Rails?
Ruby on-Rails
AWS S3: The bucket you are attempting to access must be addressed using the specified endpoint
Ruby on-Rails
Ruby
Amazon Web-Services
Amazon S3
WARNING: Can't verify CSRF token authenticity rails
Ruby on-Rails
Jquery
Csrf
unable to install pg gem
Ruby on-Rails
Ruby
Rubygems
Installation
Ruby Bundle Symbol not found: _SSLv2_client_method (LoadError)
Ruby on-Rails
Openssl
Homebrew
Rbenv
Do rails rake tasks provide access to ActiveRecord models?
Ruby on-Rails
Activerecord
Rake
Task
OO Design in Rails: Where to put stuff
Ruby on-Rails
Ruby
Directory Structure
optional local variables in rails partial templates: how do I get out of the (defined? foo) mess?
Ruby on-Rails
Partials
curl : (1) Protocol https not supported or disabled in libcurl
Ruby on-Rails
Curl
Openssl
Libcurl
Ubuntu 11.04
Determine if ActiveRecord Object is New
Ruby on-Rails
Activerecord
Difference between Destroy and Delete
Ruby on-Rails
Destroy
Delete Row
Learning Ruby on Rails
Ruby on-Rails
Ruby
Ide
Difference between attr_accessor and attr_accessible
Ruby on-Rails
Ruby
How to use my view helpers in my ActionMailer views?
Ruby on-Rails
How to restart a rails server on Heroku?
Ruby on-Rails
Ruby on-Rails-3
Heroku
Specifying rails version to use when creating a new application
Ruby on-Rails
Override devise registrations controller
Ruby on-Rails
Devise
Uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
Ruby on-Rails
Rubygems
Compatibility
ActiveModel::ForbiddenAttributesError when creating new user
Ruby on-Rails
Rails Activerecord
Rails params explained?
Ruby on-Rails
Ruby
Rails: How does the respond_to block work?
Ruby on-Rails
How can I find out the current route in Rails?
Ruby on-Rails
Ruby
Routing
Add a CSS class to <%= f.submit %>
Ruby on-Rails
Css
Ruby on-Rails-3
Use rvmrc or ruby-version file to set a project gemset with RVM?
Ruby on-Rails
Ruby on-Rails-3
Ruby on-Rails-3.2
Rvm
Rvmrc
Ruby on Rails: Where to define global constants?
Ruby on-Rails
Constants
Global
Rails - How to use a Helper Inside a Controller
Ruby on-Rails
Ruby on-Rails-3
Ruby on-Rails-5
Change a column type from Date to DateTime during ROR migration
Mysql
Ruby on-Rails
Ruby
Ruby on-Rails-3
Migration
Auto-loading lib files in Rails 4
Ruby on-Rails
Ruby on-Rails-4
Add querystring parameters to link_to
Ruby on-Rails
Query String
Case-insensitive search in Rails model
Ruby on-Rails
Activerecord
Case Insensitive
How do I step out of a loop with Ruby Pry?
Ruby on-Rails
Ruby
Loops
Exit
Pry
Paperclip::Errors::MissingRequiredValidatorError with Rails 4
Ruby on-Rails
Ruby
Ruby on-Rails-4
Paperclip
How to express a NOT IN query with ActiveRecord/Rails?
Ruby on-Rails
Rails Activerecord
How to replace a hash key with another key
Ruby on-Rails
Ruby
Ruby on-Rails-3
Hash
Rails.env vs RAILS_ENV
Ruby on-Rails
Is there a way to get a collection of all the Models in your Rails app?
Ruby on-Rails
Activerecord
Collections
Model
Ruby on Rails form_for select field with class
Ruby on-Rails
ActiveRecord: size vs count
Ruby on-Rails
Ruby
Ruby on-Rails-3
Rails Activerecord
Rails: Is there a rails trick to adding commas to large numbers?
Ruby on-Rails
Ruby
How do you do relative time in Rails?
Ruby on-Rails
Ruby
How do I create an average from a Ruby array?
Ruby on-Rails
Ruby
How can I download a file from a URL and save it in Rails?
Ruby on-Rails
Ruby
File Handling
Can I get the name of the current controller in the view?
Ruby on-Rails
Model View-Controller
View
Controller
Ruby/Rails: converting a Date to a UNIX timestamp
Ruby on-Rails
Ruby
Date
Timestamp
How to pass arguments into a Rake task with environment in Rails?
Ruby on-Rails
Ruby
Rake
Ruby on Rails - Import Data from a CSV file
Ruby on-Rails
Csv
Import
Rails: Missing host to link to! Please provide :host parameter or set default_url_options[:host]
Ruby on-Rails
Rspec
What do helper and helper_method do?
Ruby on-Rails
Helper
How to rollback just one step using rake db:migrate
Ruby on-Rails
Rake
Dbmigrate
Want to find records with no associated records in Rails
Ruby on-Rails
Arel
Meta Where
How to change a nullable column to not nullable in a Rails migration?
Ruby on-Rails
Migration
How to use RSpec's should_raise with any kind of exception?
Ruby on-Rails
Ruby
Exception Handling
Rspec
Rails get index of "each" loop
Ruby on-Rails
Ruby
Ruby: Is there an opposite of include? for Ruby Arrays?
Ruby on-Rails
Ruby
Rails has_many with alias name
Ruby on-Rails
Has Many
Passing parameters in rails redirect_to
Ruby on-Rails
Rails new vs create
Ruby on-Rails
Rest
Rails: How to reference images in CSS within Rails 4
Ruby on-Rails
Heroku
Ruby on-Rails-4
What do the &,<<, * mean in this database.yml file?
Ruby on-Rails
Database Connection
Yaml
Alias
Cross Reference
delete_all vs destroy_all?
Ruby on-Rails
Ruby
Database
Activerecord
What is causing this ActiveRecord::ReadOnlyRecord error?
Ruby on-Rails
Ruby
Activerecord
Join
Associations
Rails :dependent => :destroy VS :dependent => :delete_all
Ruby on-Rails
Ruby
Model
Associations
Rails find_or_create_by more than one attribute?
Ruby on-Rails
Activerecord
Model
Many to-Many
Dynamic Attributes
Library not loaded: libmysqlclient.16.dylib error when trying to run 'rails server' on OS X 10.6 with mysql2 gem
Mysql
Ruby on-Rails
Rubygems
Webrick
Rails: How do I create a default value for attributes in Rails activerecord's model?
Ruby on-Rails
Activerecord
Validate uniqueness of multiple columns
Ruby on-Rails
Ruby on-Rails-3
Validation
Activerecord
Rails Activerecord
Rails - Nested includes on Active Records?
Ruby on-Rails
Rails Activerecord
How to determine if one array contains all elements of another array
Ruby on-Rails
Arrays
Ruby
Rails ActiveRecord date between
Ruby on-Rails
Rails Activerecord
Ruby on-Rails-2
Generate model in Rails using user_id:integer vs user:references
Ruby on-Rails
Rails 4 Authenticity Token
Ruby on-Rails
Ruby
Ruby on-Rails-4
Authenticity Token
invalid multibyte char (US-ASCII) with Rails and Ruby 1.9
Ruby on-Rails
Ruby 1.9
Unable to install gem - Failed to build gem native extension - cannot load such file -- mkmf (LoadError)
Ruby on-Rails
Ruby
Ubuntu
Gem
Bcrypt
config.assets.compile=true in Rails production, why not?
Ruby on-Rails
Asset Pipeline
Production Environment
Rails: Installing PG gem on OS X - failure to build native extension
Ruby on-Rails
Postgresql
Macos
Rubygems
What is the right way to override a setter method in Ruby on Rails?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Overriding
Setter
How to redirect to previous page in Ruby On Rails?
Ruby on-Rails
Redirect
How to test if parameters exist in rails
Ruby on-Rails
Ruby
ActiveRecord OR query
Ruby on-Rails
Ruby on-Rails-3
Rails Activerecord
Repairing Postgresql after upgrading to OSX 10.7 Lion
Ruby on-Rails
Ruby on-Rails-3
Macos
Postgresql
Osx Lion
execJs: 'Could not find a JavaScript runtime' but execjs AND therubyracer are in Gemfile
Ruby on-Rails
Ruby on-Rails-3.1
Ruby on-Rails-Plugins
Execjs
Rails select helper - Default selected value, how?
Ruby on-Rails
Change a Rails application to production
Ruby on-Rails
Development Environment
Production Environment
Ruby on Rails Callback, what is difference between :before_save and :before_create?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Validation
Check if a table exists in Rails
Ruby on-Rails
Ruby
Rails Activerecord
Rails Migrations
Error installing libv8: ERROR: Failed to build gem native extension
Ruby on-Rails
Ruby
Windows
Libv8
Combine two ActiveRecord::Relation objects
Ruby on-Rails
Rails Activerecord
Arel
Rails migrations: Undo default setting for a column
Ruby on-Rails
Rails Migrations
Add timestamps to an existing table
Ruby on-Rails
Ruby
Rails Activerecord
Rails Migrations
Ruby on Rails and Rake problems: uninitialized constant Rake::DSL
Ruby on-Rails
Rake
Converting string from snake_case to CamelCase in Ruby
Ruby on-Rails
Ruby
String
How big is too big for a PostgreSQL table?
Sql
Ruby on-Rails
Performance
Postgresql
Database Design
In Ruby on Rails, how do I format a date with the "th" suffix, as in, "Sun Oct 5th"?
Ruby on-Rails
Ruby
Date
Rails: Using greater than/less than with a where statement
Ruby on-Rails
Activerecord
Rails Activerecord
Rails: Get Client IP address
Ruby on-Rails
Client
Ip Address
Heroku/devise - Missing host to link to! Please provide :host parameter or set default_url_options[:host]
Ruby on-Rails
Heroku
Devise
Actionmailer
Is there documentation for the Rails column types?
Ruby on-Rails
Determine what attributes were changed in Rails after_save callback?
Ruby on-Rails
Ruby on-Rails-4
Model
Callback
Observer Pattern
rake db:schema:load vs. migrations
Ruby on-Rails
Ruby on-Rails-3
Migration
How do I ignore the authenticity token for specific actions in Rails?
Ruby on-Rails
How to generate controller inside namespace in rails
Ruby on-Rails
Ruby on-Rails-3
Show pending migrations in rails
Ruby on-Rails
Rails Migrations
How to get last N records with activerecord?
Ruby on-Rails
Ruby
Activerecord
Best practices to handle routes for STI subclasses in rails
Ruby on-Rails
Ruby
Single Table-Inheritance
rails 3 validation on uniqueness on multiple attributes
Ruby on-Rails
Validation
warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
Ruby on-Rails
Macos
Permissions
Rubygems
Warnings
How to solve error "Missing `secret_key_base` for 'production' environment" (Rails 4.1)
Ruby on-Rails
Ruby
Heroku
Ruby on-Rails-4
Ruby on Rails production log rotation
Ruby on-Rails
Logging
Production Environment
ActionController::InvalidAuthenticityToken
Ruby on-Rails
What's the difference between belongs_to and has_one?
Ruby on-Rails
Activerecord
rails simple_form - hidden field - create?
Ruby on-Rails
Ruby on-Rails-3
Form For
Hidden Field
Simple Form
Equivalent of .try() for a hash to avoid "undefined method" errors on nil?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Hash
Rails: validate uniqueness of two columns (together)
Ruby on-Rails
Ruby on-Rails-3
Ruby on-Rails-4
Activerecord
Rails Activerecord
Rails: How to list database tables/objects using the Rails console?
Ruby on-Rails
Console
What is the _snowman param in Ruby on Rails 3 forms for?
Ruby on-Rails
Forms
Unicode
Rails layouts per action?
Ruby on-Rails
The differences between .build, .create, and .create! and when should they be used?
Ruby on-Rails
What does inverse_of do? What SQL does it generate?
Ruby on-Rails
Activerecord
Ruby / Rails: convert int to time OR get time from integer?
Ruby on-Rails
Ruby
Time
Rails: How to change the title of a page?
Ruby on-Rails
Ruby
Ruby on Rails console is hanging when loading
Ruby on-Rails
Ruby
Console
Random record in ActiveRecord
Ruby on-Rails
Random
Rails Activerecord
EOFError: end of file reached issue with Net::HTTP
Ruby on-Rails
Ruby
Web Services
Facebook Fql
Ignoring time zones altogether in Rails and PostgreSQL
Ruby on-Rails
Ruby on-Rails-3
Postgresql
Datetime
Timezone
How to disable "Cannot Render Console from..." on Rails
Ruby on-Rails
Vagrant
Ruby on Rails: how to render a string as HTML?
Html
Ruby on-Rails
Ruby
String
do..end vs curly braces for blocks in Ruby
Ruby on-Rails
Ruby
Ruby on-Rails-3
Coding Style
how to solve "ruby installation is missing psych" error?
Ruby on-Rails
Ruby
Macos
Rvm
How do you discover model attributes in Rails?
Ruby on-Rails
Activerecord
How to change Rails 3 server default port in develoment?
Ruby on-Rails
Rails Object to hash
Ruby on-Rails
Ruby
Rails - controller action name to string
Ruby on-Rails
Function
How to get started on TDD with Ruby on Rails?
Ruby on-Rails
Testing
Tdd
Overriding a Rails default_scope
Ruby on-Rails
Reset the database (purge all), then seed a database
Ruby on-Rails
Database
Seeding
belongs_to through associations
Ruby on-Rails
Ruby on-Rails-3
Activerecord
Rails 3: I want to list all paths defined in my rails application
Ruby on-Rails
Ruby on-Rails-3
Routes
How to log something in Rails in an independent log file?
Ruby on-Rails
Logging
Where to define custom error types in Ruby and/or Rails?
Ruby on-Rails
Ruby
Conventions
Rails 3 migrations: Adding reference column?
Ruby on-Rails
Activerecord
Migration
Server is already running in Rails
Ruby on-Rails
Ruby on-Rails-3.2
Command Prompt
Webrick
Rails extending ActiveRecord::Base
Ruby on-Rails
Extend
Rails Activerecord
How to check for a JSON response using RSpec?
Ruby on-Rails
Json
Rspec
Ruby: Rounding float in Ruby
Ruby on-Rails
Ruby
Rounding
A migration to add unique constraint to a combination of columns
Ruby on-Rails
Database
Best way to add page specific JavaScript in a Rails 3 app?
Javascript
Ruby on-Rails
Ruby on-Rails-3
Best way to create unique token in Rails?
Ruby on-Rails
Ruby on-Rails-3
Random
Guid
Heroku deployment error H10 (App crashed)
Ruby on-Rails
Deployment
Heroku
Renaming table in rails
Ruby on-Rails
Rails 3 check if attribute changed
Ruby on-Rails
Ruby on-Rails-3
Accessing a class's constants
Ruby on-Rails
Ruby
Constants
Rails: Address already in use - bind(2) (Errno::EADDRINUSE)
Ruby on-Rails
Puma
Ruby on Rails: Delete multiple hash keys
Ruby on-Rails
Ruby
Rails 3 datatypes?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Rails Activerecord
Can't find the PostgreSQL client library (libpq)
Ruby on-Rails
Ruby on-Rails-3
Postgresql
Rubygems
Can you get DB username, pw, database name in Rails?
Ruby on-Rails
Ruby
Database
Activerecord
Environment
'sudo gem install' or 'gem install' and gem locations
Ruby on-Rails
Ruby
Macos
Rubygems
Where do gems install?
Ruby on-Rails
Rubygems
Removing all empty elements from a hash / YAML?
Ruby on-Rails
Ruby
Hash
Yaml
Nokogiri installation fails -libxml2 is missing
Ruby on-Rails
Ruby
Rubygems
How to URL encode a string in Ruby
Ruby on-Rails
Ruby
String
Uri
Urlencode
find vs find_by vs where
Ruby on-Rails
Rails Activerecord
Dynamic Finders
Is it secure to store passwords as environment variables (rather than as plain text) in config files?
Ruby on-Rails
Django
Security
Passwords
Environment Variables
Rails Observer Alternatives for 4.0
Ruby on-Rails
Ruby on-Rails-4
Rails - Strong Parameters - Nested Objects
Ruby on-Rails
Nested Attributes
Strong Parameters
How to chain scope queries with OR instead of AND?
Ruby on-Rails
Ruby on-Rails-3
Activerecord
Rails Activerecord
Rails 3.1 and Image Assets
Ruby on-Rails
Ruby on-Rails-3
Uncaught ReferenceError: React is not defined
Javascript
Ruby on-Rails
Reactjs
Rails Model, View, Controller, and Helper: what goes where?
Ruby on-Rails
Ruby
Model View-Controller
How to prevent browser page caching in Rails
Ruby on-Rails
Ruby
Apache
Caching
Http Headers
How to run a single test from a Rails test suite?
Ruby on-Rails
Unit Testing
Rake
Rails 2.3-style plugins and deprecation warnings running task in Heroku
Ruby on-Rails
Heroku
Ruby on-Rails-Plugins
How can I avoid running ActiveRecord callbacks?
Ruby on-Rails
Ruby
Rails Activerecord
Can someone explain collection_select to me in clear, simple terms?
Ruby on-Rails
Ruby on-Rails-3
Rails: Open link in new tab (with 'link_to')
Ruby on-Rails
Ruby
Ruby on-Rails-3
Override ActiveRecord attribute methods
Ruby on-Rails
Oop
Activerecord
How to select where ID in Array Rails ActiveRecord without exception
Ruby on-Rails
Activerecord
Find
Create a devise user from Ruby console
Ruby on-Rails
Ruby
Devise
Rails hidden field undefined method 'merge' error
Ruby on-Rails
Ruby
Ruby on-Rails-3
Forms
Hidden Field
Rails formatting date
Ruby on-Rails
Ruby
Date
Date Format
A copy of xxx has been removed from the module tree but is still active
Ruby on-Rails
Ruby
Ruby on-Rails-4
Rails: Using build with a has_one association in rails
Ruby on-Rails
Associations
Has One
Database Relations
How to get current path with query string using Capybara
Ruby on-Rails
Ruby on-Rails-3
Rspec
Capybara
test a file upload using rspec - rails
Ruby on-Rails
File Upload
Tdd
Rspec Rails
Rails: FATAL - Peer authentication failed for user (PG::Error)
Ruby on-Rails
Postgresql
Ruby on-Rails-3
Ruby on-Rails-3.1
Ubuntu 11.10
Labels for radio buttons in rails form
Ruby on-Rails
Forms
How to extract URL parameters from a URL with Ruby or Rails?
Ruby on-Rails
Ruby
Uri
Url Parameters
How to update attributes without validation
Ruby on-Rails
Validation
How to change default timezone for Active Record in Rails?
Ruby on-Rails
Ruby
Timezone
Rails Activerecord
The Ruby %r{ } expression
Ruby on-Rails
Ruby
Rails 4 - Gem::LoadError: Specified 'mysql2' for database adapter, but the gem is not loaded
Ruby on-Rails
Ruby on-Rails-4
Ruby on-Rails-4.1
Mysql2
Ruby on-Rails-4.2
Bundler: Command not found
Ruby on-Rails
Bundler
How can I change the title of the document during .ready()?
Javascript
Jquery
Ruby on-Rails
Continuous Integration for Ruby on Rails?
Ruby on-Rails
Ruby
Continuous Integration
Rails migration: t.references with alternative name?
Ruby on-Rails
Associations
Migration
How to show SQL queries run in the Rails console?
Ruby on-Rails
Activerecord
Ruby on Rails: How do I add placeholder text to a f.text_field?
Ruby on-Rails
Deleting all records in a database table
Ruby on-Rails
Ruby
Database
Ruby on-Rails-3
How to clear all the jobs from Sidekiq?
Ruby on-Rails
Ruby
Sidekiq
What is the meaning of erb?
Ruby on-Rails
Ruby
Erb
No route matches [GET] /assets
Ruby on-Rails
Ruby on-Rails-3
Asset Pipeline
Specifying column name in a "references" migration
Ruby on-Rails
Ruby on-Rails-3
Activerecord
Rails Migrations
Rails 5: Load lib files in production
Ruby on-Rails
Autoload
Ruby on-Rails-5
Rails Migration: Remove constraint
Ruby on-Rails
Database Migration
What does ~> mean in a gem file
Ruby on-Rails
How do RVM and rbenv actually work?
Ruby on-Rails
Ruby
Rubygems
Rvm
Rbenv
API Versioning for Rails Routes
Ruby on-Rails
Ruby on-Rails-3
Routes
Versioning
Rails: Adding an index after adding column
Ruby on-Rails
Indexing
Migration
Rails: What's a good way to validate links (URLs)?
Ruby on-Rails
Ruby
Regex
Validation
Url
Can't stop rails server
Ruby on-Rails
Why is using the rails default_scope often recommend against?
Ruby on-Rails
Default Scope
How to empty/destroy a session in rails?
Ruby on-Rails
Session
Session Variables
Session Timeout
how to generate migration to make references polymorphic
Ruby on-Rails
Polymorphic Associations
Rails Migrations
What is the difference between Gemfile and Gemfile.lock in Ruby on Rails
Ruby on-Rails
Ruby
Bundler
Gemfile
gemfile.lock
Why does Unicorn need to be deployed together with Nginx?
Ruby on-Rails
Nginx
Webserver
Unicorn
Ruby on Rails: How do I add a not null constraint to an existing column using a migration?
Ruby on-Rails
Database
Migration
Constraints
Notnull
Lost my schema.rb! Can it be regenerated?
Ruby on-Rails
Ruby on-Rails-3
Git
Trouble comparing time with RSpec
Ruby on-Rails
Ruby
Time
Rspec
Comparison
When to use a "has_many :through" relation in Rails?
Ruby on-Rails
Ruby on-Rails-3
Activerecord
What is meant by 'Assignment Branch Condition Size too high' and how to fix it?
Ruby on-Rails
Ruby
Code Metrics
Rubocop
Ruby on Rails. How do I use the Active Record .build method in a :belongs to relationship?
Ruby on-Rails
Activerecord
Foreign Keys
Pass a variable into a partial, rails 3?
Ruby on-Rails
Ruby
Ruby on-Rails-3
How to work with Git branches and Rails migrations
Ruby on-Rails
Database
Git
Ruby on Rails: getting the max value from a DB column
Sql
Ruby on-Rails
Rails respond_with: how does it work?
Ruby on-Rails
Ruby on-Rails-3
What is the difference between t.belongs_to and t.references in rails?
Ruby on-Rails
Rails Migrations
How to list all methods for an object in Ruby?
Ruby on-Rails
Ruby
How to get nice formatting in the Rails console
Ruby on-Rails
Irb
Using Rails serialize to save hash to database
Ruby on-Rails
Ruby
Serialization
Activerecord
error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?
node.js
Ruby on-Rails
Xcode
Yarnpkg
Node Sass
Uniq by object attribute in Ruby
Ruby on-Rails
Ruby
Arrays
Unique
JRuby on Rails vs. Ruby on Rails, what's difference?
Ruby on-Rails
Ruby
Jruby
Jrubyonrails
When to add what indexes in a table in Rails
Mysql
Ruby on-Rails
Activerecord
How do I clear stuck/stale Resque workers?
Ruby on-Rails
Ruby on-Rails-3
Heroku
Redis
Resque
How to check if a model has a certain column/attribute?
Ruby on-Rails
Rails: Logging the entire stack trace of an exception
Ruby on-Rails
Ruby
How do I set up email confirmation with Devise?
Ruby on-Rails
Devise
Actionmailer
Confirmation
NoMethodError: undefined method `last_comment' after upgrading to rake 11
Ruby on-Rails
Ruby on-Rails-3
Rake
Create a new Ruby on Rails application using MySQL instead of SQLite
Mysql
Ruby on-Rails
Ruby
Rails render partial with block
Ruby on-Rails
Render
Partial
Block
Rails 3: "field-with-errors" wrapper changes the page appearance. How to avoid this?
Ruby on-Rails
Ruby on-Rails-3
Validation
Field with-Errors
How to set request headers in rspec request spec?
Ruby on-Rails
Json
Testing
Rspec
Best way to create custom config options for my Rails app?
Ruby on-Rails
Ruby
Configuration
Environment
Get person's age in Ruby
Ruby on-Rails
Ruby
How to remove a field from params[:something]
Ruby on-Rails
Rails 3: Get Random Record
Ruby on-Rails
Ruby
Ruby on-Rails-3
Activerecord
Random
What's the 'environment' task in Rake?
Ruby on-Rails
Rake
What is the difference between pluck and collect in Rails?
Ruby on-Rails
Ruby
Rails Activerecord
Rails 4 - passing variable to partial
Ruby on-Rails
Rails 4 LIKE query - ActiveRecord adds quotes
Sql
Ruby on-Rails
Ruby
Postgresql
Activerecord
All Ruby tests raising: undefined method `authenticate' for nil:NilClass
Ruby on-Rails
Ruby
Testing
Rspec
Devise
undefined method `source_index' for Gem:Module (NoMethodError)
Ruby on-Rails
Ruby on-Rails-2
AngularJS- Login and Authentication in each route and controller
Javascript
Ruby on-Rails
Angularjs
Angularjs Authentication
Rails Model find where not equal
Ruby on-Rails
Ruby on-Rails-3
What is the difference between `after_create` and `after_save` and when to use which?
Ruby on-Rails
Ruby
Ruby on-Rails-3
How to check a checkbox in capybara?
Ruby on-Rails
Ruby
Testing
Rspec
Capybara
Rails CSRF Protection + Angular.js: protect_from_forgery makes me to log out on POST
Ruby on-Rails
Angularjs
Csrf
Protect From-Forgery
advantage of tap method in ruby
Ruby on-Rails
Ruby
How can I see the SQL that will be generated by a given ActiveRecord query in Ruby on Rails
Sql
Ruby on-Rails
Activerecord
In Rails, how do you render JSON using a view?
Ruby on-Rails
Ruby
Json
Templates
Rendering
Devise form within a different controller
Ruby on-Rails
Ruby on-Rails-3
Devise
Rails detect if request was AJAX
Ruby on-Rails
Ajax
Rails: Why does find(id) raise an exception in rails?
Ruby on-Rails
Activerecord
How to run Rails console in the test environment and load test_helper.rb?
Ruby on-Rails
Ruby
Testing
Shoulda
form_for with nested resources
Ruby on-Rails
Form For
Nested Resources
ActiveRecord: List columns in table from console
Sql
Ruby on-Rails
Ruby on-Rails-3
Activerecord
RSpec: how to test if a method was called?
Ruby on-Rails
Ruby
Rspec
Ubuntu rails install fails on zlib
Ruby on-Rails
Ruby
Rubygems
Zlib
Ubuntu 8.10
How to load db:seed data into test database automatically?
Ruby on-Rails
Testing
Seed
Rails has_and_belongs_to_many migration
Ruby on-Rails
Ruby on-Rails-3
Migration
Has and-Belongs-to-Many
What does rake db:test:prepare actually do?
Ruby on-Rails
Ruby
Nested attributes unpermitted parameters
Ruby on-Rails
Ruby on-Rails-4
rails - Devise - Handling - devise_error_messages
Ruby on-Rails
Devise
Convert duration to hours:minutes:seconds (or similar) in Rails 3 or Ruby
Ruby on-Rails
Ruby
Datetime
Ruby on-Rails-3
Can you do greater than comparison on a date in a Rails 3 search?
Ruby on-Rails
Activerecord
Ruby on-Rails-3
Build vs new in Rails 3
Ruby on-Rails
Ruby on-Rails-3
Associations
You have already activated rake 0.9.0, but your Gemfile requires rake 0.8.7
Ruby on-Rails
Rake
How to tell if homebrew is installed on Mac OS X
Ruby on-Rails
Macos
Homebrew
Why escape_javascript before rendering a partial?
Javascript
Ruby on-Rails
Ruby on Rails: How do you add add zeros in front of a number if it's under 10?
Ruby on-Rails
Ruby
Rspec, Rails: how to test private methods of controllers?
Ruby on-Rails
Rspec
Change from SQLite to PostgreSQL in a fresh Rails project
Ruby on-Rails
Database
Sqlite
Postgresql
Heroku
Can not connect to local PostgreSQL
Ruby on-Rails
Macos
Postgresql
How to create has_and_belongs_to_many associations in Factory girl
Ruby on-Rails
Associations
Has and-Belongs-to-Many
Factory Bot
How to tell which version of a gem a rails app is using
Ruby on-Rails
Rubygems
Block comments in html.erb templates in rails
Ruby on-Rails
Ruby
Comments
Erb
Block Comments
What is the best way to clear a session variable in rails?
Ruby on-Rails
Session
"render :nothing => true" returns empty plaintext file?
Ruby on-Rails
Rest
Link To
How do I preview emails in Rails?
Ruby on-Rails
Email
Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?
Ruby on-Rails
Ruby
Postgresql
Ruby on-Rails-3
Ruby on-Rails-4
Rails migration for has_and_belongs_to_many join table
Ruby on-Rails
Migration
Code Generation
Has and-Belongs-to-Many
Rails: call another controller action from a controller
Ruby on-Rails
Removing a model in rails (reverse of "rails g model Title...")
Ruby on-Rails
Ruby
Model
Migration
Ruby / Rails - Change the timezone of a Time, without changing the value
Ruby on-Rails
Ruby
Datetime
Time
Timezone
Is there a print_r or var_dump equivalent in Ruby / Ruby on Rails?
Ruby on-Rails
Ruby
How to check if a string is a valid date
Ruby on-Rails
Ruby
String
Date
List of Rails Model Types
Ruby on-Rails
ruby on rails f.select options with custom attributes
Ruby on-Rails
Select
Attributes
form_for but to post to a different action
Ruby on-Rails
Change the name of the :id parameter in Routing resources for Rails
Ruby on-Rails
Ruby
Ruby on-Rails-3
Using --no-rdoc and --no-ri with bundler
Ruby on-Rails
Ruby
Rubygems
Gem
Bundler
Ruby on Rails patterns - decorator vs presenter
Ruby on-Rails
Design Patterns
Decorator
Presenter
Testing for empty or nil-value string
Ruby on-Rails
Ruby
How to Test a Concern in Rails
Ruby on-Rails
Testing
Rspec
Run a callback only if an attribute has changed in Rails
Ruby on-Rails
Callback
Why use Ruby instead of Smalltalk?
Ruby on-Rails
Ruby
Smalltalk
Seaside
When to use nil, blank, empty?
Ruby on-Rails
Ruby
Save image from URL by paperclip
Ruby on-Rails
Ruby
Upload
Paperclip
How to do a LIKE query in Arel and Rails?
Ruby on-Rails
Activerecord
Arel
bundle install returns "Could not locate Gemfile"
Ruby on-Rails
Installation
Bundle
Gemfile
rails + MySQL on OSX: Library not loaded: libmysqlclient.18.dylib
Mysql
Ruby on-Rails
Ruby
Macos
Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
Ruby on-Rails
Libreadline
How do I render a partial of a different format in Rails?
Ruby on-Rails
Format
Render
Partial
Actionview
How do I wrap link_to around some html ruby code?
Ruby on-Rails
Ruby
How to set a default value for a datetime column to record creation time in a migration?
Ruby on-Rails
What's an elegant way to conditionally add a class to an HTML element in a view?
Ruby on-Rails
Views
How to get record created today by rails activerecord?
Ruby on-Rails
Date
Rails Activerecord
Is there a way to access method arguments in Ruby?
Ruby on-Rails
Ruby
What's the difference between RSpec and Cucumber?
Ruby on-Rails
Testing
Rspec
Tdd
Cucumber
Pry: show me the stack
Ruby on-Rails
Pry
Rails 4: assets not loading in production
Ruby on-Rails
Ruby
Asset Pipeline
Ruby on-Rails-4
How get integer value from a enum in Rails?
Ruby on-Rails
Ruby on-Rails-4
The ":nothing" option is deprecated and will be removed in Rails 5.1
Ruby on-Rails
Ruby on-Rails-5
Transform DateTime into simple Date in Ruby on Rails
Ruby on-Rails
Ruby
Datetime
Named routes _path vs _url
Ruby on-Rails
There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireError)
Ruby on-Rails
Ruby on-Rails-4
Server
Rails: convert UTC DateTime to another time zone
Ruby on-Rails
Ruby
Datetime
Runtime
How Do I Use Factory Girl To Generate A Paperclip Attachment?
Ruby on-Rails
Paperclip
Factory Bot
Rails: how do I validate that something is a boolean?
Ruby on-Rails
Validation
Rails: "Could not find bundler" (2.2.11) required by Gemfile.lock. (Gem::GemNotFoundException)
Ruby on-Rails
Ruby
Rake
Bundler
Find the extension of a filename in Ruby
Ruby on-Rails
Ruby
Skip callbacks on Factory Girl and Rspec
Ruby on-Rails
Rspec
Factory Bot
WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true
Ruby on-Rails
Ruby on-Rails-3
Webrick as production server vs. Thin or Unicorn?
Ruby on-Rails
Production Environment
Thin
Webrick
Unicorn
Reading header data in Ruby on Rails
Ruby on-Rails
Api
Http Headers
Rendering JSON in controller
Ruby on-Rails
Json
Ruby on-Rails-3.2
Eager load polymorphic
Ruby on-Rails
Ruby on-Rails-3
Activerecord
Find all records which have a count of an association greater than zero
Sql
Ruby on-Rails
Ruby on-Rails-3
Activerecord
Find rows with multiple duplicate fields with Active Record, Rails & Postgres
Ruby on-Rails
Postgresql
Activerecord
In Rails - is there a rails method to convert newlines to <br>?
Ruby on-Rails
Ruby
How to say "should_receive" more times in RSpec
Ruby on-Rails
Rspec
How do I upgrade my ruby 1.9.2-p0 to the latest patch level using rvm?
Ruby on-Rails
Ruby
Rvm
How to display unique records from a has_many through relationship?
Ruby on-Rails
Unique
Distinct
Ruby on-Rails-3
ERROR: Error installing capybara-webkit:
Ruby on-Rails
Ruby
Gem
Capybara
Capybara Webkit
Disable ActiveRecord for Rails 4
Ruby on-Rails
Ruby
Ruby on-Rails-4
Saving enum from select in Rails 4.1
Ruby on-Rails
Ruby
Ruby on-Rails-4
Enums
How to get Ruby / Homebrew / RVM to work on Yosemite?
Ruby on-Rails
Ruby
Homebrew
Osx Yosemite
ActiveRecord, has_many :through, and Polymorphic Associations
Ruby on-Rails
Activerecord
Polymorphic Associations
POST JSON to API using Rails and HTTParty
Ruby on-Rails
Json
Api
Httparty
How do I run a Ruby file in a Rails environment?
Ruby on-Rails
Ruby
Ruby on-Rails-3
RSpec: What is the difference between a feature and a request spec?
Ruby on-Rails
Rspec
Rspec Rails
difference between scope and namespace of ruby-on-rails 3 routing
Ruby on-Rails
How to add 10 days to current time in Rails
Ruby on-Rails
Datetime
Ruby on-Rails-3
Activesupport
Rails: How to change the text on the submit button in a Rails Form
Ruby on-Rails
Ruby on-Rails-3
Index on multiple columns in Ruby on Rails
Ruby on-Rails
Ruby on-Rails-3
Database Design
Indexing
Clear sidekiq queue
Ruby on-Rails
Sidekiq
What is mattr_accessor in a Rails module?
Ruby on-Rails
Ruby
Class
Module
Activesupport
Rails ActionMailer - format sender and recipient name/email address
Ruby on-Rails
Actionmailer
How to set default values in Rails?
Ruby on-Rails
Ruby
How do I print out the contents of an object in Rails for easy debugging?
Ruby on-Rails
Ruby
Assigning default value while creating migration file
Ruby on-Rails
Migration
Singular or plural controller and helper names in Rails
Ruby on-Rails
Naming Conventions
How to delete migration files in Rails 3
Ruby on-Rails
Ruby on-Rails-3
File Io
Rails - link_to helper with data-* attribute
Ruby on-Rails
Ruby on-Rails-3
Html
Converting an array of objects to ActiveRecord::Relation
Ruby on-Rails
Ruby
Activerecord
Many-to-many relationship with the same model in rails?
Ruby on-Rails
puts vs logger in rails rake tasks
Ruby on-Rails
Rake
How to get execution time in rails console?
Sql
Ruby on-Rails
Time
Console
Rails: around_* callbacks
Ruby on-Rails
Ruby
Callback
Devise - How do I forbid certain users from signing in?
Ruby on-Rails
Devise
Rails and PostgreSQL: Role postgres does not exist
Ruby on-Rails
Postgresql
Rake
Cookie overflow in rails application?
Ruby on-Rails
find() with nil when there are no records
Ruby on-Rails
Ruby
Ruby on-Rails-3
Activerecord
Rails: Custom text for rails form_for label
Ruby on-Rails
Ruby
Ruby on-Rails-3.2
Form For
Rails 5: ActiveRecord OR query
Ruby on-Rails
Ruby
Activerecord
Ruby on-Rails-5
Rails Activerecord
Bundler: You must use Bundler 2 or greater with this lockfile
Ruby on-Rails
Heroku
Ruby on-Rails-5
Heroku Cli
Convert Time from one time zone to another in Rails
Ruby on-Rails
Ruby
Datetime
What is scope/named_scope in rails?
Ruby on-Rails
Named Scope
Measure and Benchmark Time for Ruby Methods
Ruby on-Rails
Ruby
Time
Benchmarking
Interpreter
running Rails console in production
Ruby on-Rails
Installing Bootstrap 3 on Rails App
Ruby on-Rails
Ruby
Twitter Bootstrap-3
Using helpers in model: how do I include helper dependencies?
Ruby on-Rails
Ruby
Activerecord
Model
How to implement a unique index on two columns in rails
Ruby on-Rails
Activerecord
How to execute a raw update sql with dynamic binding in rails
Ruby on-Rails
Activerecord
Rawsql
Test if string is a number in Ruby on Rails
Ruby on-Rails
Ruby
String
Integer
Rails - Validate Presence Of Association?
Ruby on-Rails
Ruby on-Rails-3
Validation
Activerecord
Invalid date format specification in gemspec
Ruby on-Rails
Rubygems
No secret option provided to Rack::Session::Cookie warning?
Ruby on-Rails
Ruby on-Rails-3.2
rails install pg - Can't find the 'libpq-fe.h header
C
Ruby on-Rails
Sqlite
Ruby on-Rails-3
Pg
Allow anything through CORS Policy
Ruby on-Rails
Cors
Rails: Can't verify CSRF token authenticity when making a POST request
Ruby on-Rails
How to configure Ruby on Rails with no database?
Ruby on-Rails
what is the best way to convert a json formatted key value pair to ruby hash with symbol as key?
Ruby on-Rails
Ruby
Json
How to determine if a record is just created or updated in after_save
Ruby on-Rails
Activerecord
Activemodel
Rails how to run rake task
Ruby on-Rails
Ruby
Rake
How can you hide database output in Rails console?
Ruby on-Rails
Heroku push rejected, no Cedar-supported app detected
Ruby on-Rails
Ruby on-Rails-3
Heroku
Deprecated warning for Rails 4 has_many with order
Ruby on-Rails
Ruby on-Rails-4
Rails create or update magic?
Ruby on-Rails
Activerecord
Impossible to Install PG gem on my mac with Mavericks
Ruby on-Rails
Postgresql
Gem
Osx Mavericks
How can I overwrite a getter method in an ActiveRecord model?
Ruby on-Rails
Ruby
Rails Activerecord
Getter Setter
Overriding id on create in ActiveRecord
Ruby on-Rails
Activerecord
RSpec controller testing - blank response.body
Ruby on-Rails
Ruby
Unit Testing
Rspec
How do I test a file upload in rails?
Ruby on-Rails
Ruby
Testing
Upload
rails i18n - translating text with links inside
Ruby on-Rails
Internationalization
Capitalize only first character of string and leave others alone? (Rails)
Ruby on-Rails
String
Capitalization
Rails: fields_for with index?
Ruby on-Rails
Loops
Fields For
How do I strip non alphanumeric characters from a string and keep spaces?
Ruby on-Rails
Ruby
Regex
Ruby on-Rails-3
Elastic Search: how to see the indexed data
Ruby on-Rails
Elasticsearch
Attr Protected
erb, haml or slim: which one do you suggest? And why?
Ruby on-Rails
Haml
Erb
Slim Lang
rspec 3 - stub a class method
Ruby on-Rails
Ruby
Rspec
Rspec3
How do I automatically sort a has_many relationship in Rails?
Ruby on-Rails
How to show current year in view?
Ruby on-Rails
Ruby on-Rails-3
How to get Twitter-Bootstrap navigation to show active link?
Ruby on-Rails
Twitter Bootstrap
RSpec: Expect to change multiple
Ruby on-Rails
Rspec
Matcher
Best way to use html5 data attributes with rails content_tag helper?
Ruby on-Rails
Html
ActiveRecord.find(array_of_ids), preserving order
Ruby on-Rails
Ruby
Activerecord
To change directory inside a ruby script?
Ruby on-Rails
Ruby
Ruby on Rails: how do I sort with two columns using ActiveRecord?
Ruby on-Rails
How does Rails keep track of which migrations have run for a database?
Ruby on-Rails
Activerecord
Are there console commands to look at whats in the queue and to clear the queue in Sidekiq?
Ruby on-Rails
Sidekiq
slim dynamic conditional class
Ruby on-Rails
Slim Lang
PG undefinedtable error relation users does not exist
Ruby on-Rails
Database
Ruby on-Rails-3
Oauth 2.0
Rake Task
How to HTML encode/escape a string? Is there a built-in?
Html
Ruby on-Rails
Ruby
Escaping
Encode
Rails nested form with has_many :through, how to edit attributes of join model?
Ruby on-Rails
Join
Nested
Nested Forms
Saving multiple objects in a single call in rails
Ruby on-Rails
Activerecord
Data Access
How do I create multiple submit buttons for the same form in Rails?
Ruby on-Rails
Ruby
Form Submit
Rails: create on has_one association
Ruby on-Rails
In rails, how can I find out what caused a .save() to fail, other than validation errors?
Ruby on-Rails
Activerecord
Devise password reset from Rails console
Ruby on-Rails
Ruby
Ruby on-Rails-3
Devise
Rails Console
Find number of months between two Dates in Ruby on Rails
Ruby on-Rails
Ruby
Date
Ruby on-Rails-3.1
Rails filtering array of objects by attribute value
Ruby on-Rails
Activerecord
Rails 3 execute custom sql query without a model
Sql
Ruby on-Rails
I need to generate uuid for my rails application. What are the options(gems) I have?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Guid
Uuid
Rails + Postgres drop error: database is being accessed by other users
Ruby on-Rails
Postgresql
ExecJS::RuntimeError on Windows trying to follow rubytutorial
Javascript
Ruby on-Rails
Ruby
Windows
Asset Pipeline
Rails: where does the infamous "current_user" come from?
Ruby on-Rails
Gem::LoadError for mysql2 gem, but it's already in Gemfile
Ruby on-Rails
Mysql2
Gemfile
Why all the Active Record hate?
Ruby on-Rails
Design Patterns
Oop
Activerecord
How to use Active Support core extensions
Ruby on-Rails
Ruby
Time
Extension Methods
Activesupport
How do I turn on SQL debug logging for ActiveRecord in RSpec tests?
Ruby on-Rails
Ruby
Activerecord
Rspec Rails
how to add records to has_many :through association in rails
Ruby on-Rails
Activerecord
Has Many-Through
Using link_to with embedded HTML
Ruby on-Rails
Twitter Bootstrap
Rails find record with zero has_many records associated
Sql
Ruby on-Rails
Activerecord
Has Many
Net::SMTPAuthenticationError when sending email from Rails app (on staging environment)
Ruby on-Rails
Ruby on-Rails-3
Gmail
How to test exception raising in Rails/RSpec?
Ruby on-Rails
Ruby
Rspec
Heroku: Cannot run more than 1 Free size dynos
Ruby on-Rails
Heroku
Heroku Toolbelt
Rails check if yield :area is defined in content_for
Ruby on-Rails
Layout
Yield
Rails "validates_uniqueness_of" Case Sensitivity
Ruby on-Rails
Validation
Model
Validate presence of one field or another (XOR)
Ruby on-Rails
ruby convert class name in string to actual class
Ruby on-Rails
Is there any Rails function to check if a partial exists?
Ruby on-Rails
Partial
How to comment lines in rails html.erb files?
Ruby on-Rails
Ruby on-Rails-3
How to verify a user's password in Devise
Ruby on-Rails
Devise
Rails: How to get the model class name based on the controller class name?
Ruby on-Rails
Ruby on-Rails-3
How do I convert a Ruby class name to a underscore-delimited symbol?
Ruby on-Rails
Ruby
Metaprogramming
ActiveRecord Query Union
Ruby on-Rails
Activerecord
Union
Active Relation
Rails keeps telling me that it's not currently installed
Ruby on-Rails
Ruby
Rvm
Zsh
Rails 4 image-path, image-url and asset-url no longer work in SCSS files
Ruby on-Rails
Asset Pipeline
Ruby on-Rails-4
Rspec doesn't see my model Class. uninitialized constant error
Ruby on-Rails
Testing
Model
Rspec
Rails 4: How to reset test database?
Ruby on-Rails
Ruby
Rspec
Connecting to WSL2 server via local network
Ruby on-Rails
Windows Subsystem-for-Linux
Puma
Wsl 2
Rake just one migration
Ruby on-Rails
Database
Migration
Rake
How to get the original value of an attribute in Rails
Ruby on-Rails
Activerecord
How do I raise an exception in Rails so it behaves like other Rails exceptions?
Ruby on-Rails
Exception
Exception Handling
How to fix the uninitialized constant Rake::DSL problem on Heroku?
Ruby on-Rails
Ruby on-Rails-3
Heroku
Rake
Rails DateTime.now without Time
Ruby on-Rails
Ruby
Datetime
Devise Secret Key was not set
Ruby on-Rails
Devise
How do I use factories from FactoryGirl in rails console
Ruby on-Rails
Factory Bot
Error when trying to install app with mysql2 gem
Mysql
Ruby on-Rails
Ruby
Ruby on-Rails-4
Mysql2
Rails 5, Undefined method `for' for #<Devise on line devise_parameter_sanitizer.for
Ruby on-Rails
Devise
Ruby on-Rails-5
Rails: Catch all exceptions in a rails controller
Ruby on-Rails
Tell the end of a .each loop in ruby
Ruby on-Rails
Ruby
Loops
Each
If string is empty then return some default value
Ruby on-Rails
Ruby
How to use the "number_to_currency" helper method in the model rather than view?
Ruby on-Rails
Convert UTC to local time in Rails 3
Ruby on-Rails
Ruby
Ruby on-Rails-3
Timezone
Activesupport
Rails Console: reload! not reflecting changes in model files? What could be possible reason?
Ruby on-Rails
Ruby
Config
Reload
Rails Console
Path helpers generate paths with dots instead of slashes
Ruby on-Rails
Ruby on-Rails-3
Ruby on Rails: How can I revert a migration with rake db:migrate?
Ruby on-Rails
Ruby on-Rails-3.1
Migration
Rake
Database Migration
ActiveRecord find and only return selected columns
Ruby on-Rails
Ruby on-Rails-3
Rails Activerecord
Rails mapping array of hashes onto single hash
Ruby on-Rails
Ruby
Arrays
Hash
Use Rails’ form_for but set custom classes, attributes on <form> element?
Ruby on-Rails
Ruby on-Rails-3
Using Rails link_to for links that post
Ruby on-Rails
Ruby on-Rails-3
Post
Ruby on-Rails-3.2
Link To
Can I set up Cascade deleting in Rails?
Ruby on-Rails
Ruby
Database
Haml: Control whitespace around text
Ruby on-Rails
Haml
Remove ActiveRecord in Rails 3
Ruby on-Rails
Ruby on-Rails-3
"Ago" date/time functions in Ruby/Rails
Ruby on-Rails
Ruby
Datetime
Rails: confused about syntax for passing locals to partials
Ruby on-Rails
Partial Views
How do you tell a specific Delayed::Job to run in console?
Ruby on-Rails
Delayed Job
Rails 3 - can't install pg gem
Ruby on-Rails
Macos
Postgresql 9.1
Pg
Libpq
What does force_ssl do in Rails?
Ruby on-Rails
Ssl
Nginx
Check if record exists from controller in Rails
Ruby on-Rails
Ruby on-Rails-3
Activerecord
Exists
ActiveRecord where field = ? array of possible values
Ruby on-Rails
Rails Activerecord
REACT ERROR <th> cannot appear as a child of <thead>. See (unknown) > thead > th
Javascript
Jquery
Ruby on-Rails
Reactjs
Purpose of "consider_all_requests_local" in config/environments/development.rb?
Ruby on-Rails
Ruby
Ruby on Rails vs ASP.NET MVC 3 for a .NET Guy?
asp.net
Ruby on-Rails
asp.net Mvc-3
Rails auto-assigning id that already exists
Ruby on-Rails
Ruby on-Rails-3
Postgresql
How to `bundle install` when your Gemfile requires an older version of bundler?
Ruby on-Rails
Ruby
Bundler
How to fix "Your Ruby version is 2.3.0, but your Gemfile specified 2.2.5" while server starting
Ruby on-Rails
Ruby
Rubygems
Correctly doing redirect_to :back in Ruby on Rails when referrer is not available
Ruby on-Rails
Ruby
Http
Use YAML with variables
Ruby on-Rails
Ruby
Variables
Yaml
String Interpolation
Rails: Validating min and max length of a string but allowing it to be blank
Ruby on-Rails
Ruby
Validation
Model
Rails: Order with nulls last
Ruby on-Rails
Ruby on-Rails-3
Sorting
Activerecord
Null
Share session (cookies) between subdomains in Rails?
Ruby on-Rails
Session
Devise
How to make a list of associative array in yaml
Ruby on-Rails
Dictionary
Yaml
Associative Array
Facebook App: localhost no longer works as app domain
Javascript
Ruby on-Rails
Facebook
Heroku
How do I validate a date in rails?
Ruby on-Rails
Ruby
Validation
Date
How can I check if a value is a number?
Ruby on-Rails
Ruby
What are the WordPress alternatives for Ruby on Rails?
Ruby on-Rails
Ruby
Wordpress
Content Management-System
How to suppress Rails console/irb outputs
Ruby on-Rails
Ruby
Irb
How to get parent node in Capybara?
Ruby on-Rails
Ruby
Cucumber
Bdd
Capybara
validation custom message for rails 3
Ruby on-Rails
Ruby
Ruby on-Rails-3
Validation
Activerecord
How to implement has_many :through relationships with Mongoid and mongodb?
Ruby on-Rails
Activerecord
Mongodb
Data Modeling
Mongoid
Which Ruby on Rails is compatible with which Ruby version?
Ruby on-Rails
Ruby
How to store data in S3 and allow user access in a secure way with rails API / iOS client?
Ruby on-Rails
Api
Amazon S3
Amazon Ec2
Client Server
Deprecation warning when using has_many :through :uniq in Rails 4
Ruby on-Rails
Activerecord
Rails Activerecord
Ruby on-Rails-4
Sourcemaps off by one line in Chrome, with Ruby on Rails, Webpack, and React JS
Javascript
Ruby on-Rails
Google Chrome
Webpack
Source Maps
warning: constant ::Fixnum is deprecated When generating new model
Ruby on-Rails
Ruby
Ruby on-Rails-5
What's the state of the art in email validation for Rails?
Ruby on-Rails
Validation
Email
How to override to_json in Rails?
Ruby on-Rails
Json
Methods
Overriding
Pushing app to heroku problem
Ruby on-Rails
Ruby
Hosting
Heroku
Is there a Ruby, or Ruby-ism for not_nil? opposite of nil? method?
Ruby on-Rails
Ruby
Null
Rails 3 Migration with longtext
Ruby on-Rails
Migration
Ruby on-Rails-3
Where should Rails 3 custom validators be stored?
Ruby on-Rails
Validation
Customvalidator
Bundler: You are trying to install in deployment mode after changing your Gemfile
Ruby on-Rails
Capistrano
Bundler
How to rename rails controller and model in a project
Ruby on-Rails
Model
Controller
Rename
How is spec/rails_helper.rb different from spec/spec_helper.rb? Do I need it?
Ruby on-Rails
Testing
Rspec
Rspec Rails
Rspec3
Rails: link_to image tag. how to add class to a tag
Ruby on-Rails
Mongodb: What to know before using?
Ruby on-Rails
Ruby
Mongodb
Mongomapper
gem install permission problem
Ruby on-Rails
Ruby
Gem
Speeding up RSpec tests in a large Rails application
Ruby on-Rails
Ruby
Unit Testing
Rspec
Bdd
Ruby on Rails - How do I render an action without the application layout?
Ruby on-Rails
Is it possible to set ENV variables for rails development environment in my code?
Ruby on-Rails
Ruby on-Rails-3
Correct MySQL configuration for Ruby on Rails Database.yml file
Mysql
Ruby on-Rails
Ruby
Yaml
How to run a .rb file from IRB?
Ruby on-Rails
Ruby
Irb
How to check if a number is included in a range (in one statement)?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Numbers
Range
Changing a column type to longer strings in rails
Ruby on-Rails
String
Postgresql
Ruby on-Rails-3.1
Rails Activerecord
undefined method `visit' when using RSpec and Capybara in rails
Ruby on-Rails
Ruby
Rspec
Capybara
A server is already running. Check …/tmp/pids/server.pid. Exiting - rails
Ruby on-Rails
How to tell if rails is in production?
Ruby on-Rails
Development Environment
Production Environment
Generate a controller with all the RESTful functions
Ruby on-Rails
Controller
Rest
Rspec
Read contents of a local file into a variable in Rails
Ruby on-Rails
Ruby
Can RSpec stubbed method return different values in sequence?
Ruby on-Rails
Testing
Rspec
Stub
Rails not decoding JSON from jQuery correctly (array becoming a hash with integer keys)
Jquery
Ruby on-Rails
Arrays
Json
Post
Rails: How to find_by a field containing a certain string
Sql
Ruby on-Rails
Ruby on-Rails-3
Ruby on-Rails-3.1
Stop rails console from printing out the object at the end of a loop
Ruby on-Rails
Ruby
Console
Irb
PG::Error: ERROR: new encoding (UTF8) is incompatible
Ruby on-Rails
Ruby
Postgresql
How to override X-Frame-Options for a controller or action in Rails 4
Ruby on-Rails
Iframe
Http Headers
Ruby on-Rails-4
X Frame-Options
What is the point of object.presence?
Ruby on-Rails
Ruby
AWS OpsWorks vs AWS Beanstalk vs AWS CloudFormation?
Ruby on-Rails
Amazon Web-Services
Amazon Elastic-Beanstalk
Amazon Cloudformation
Aws Opsworks
Safe navigation equivalent to Rails try for hashes
Ruby on-Rails
Ruby
Bundler: can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException) during bundle install with gem
Ruby on-Rails
Ruby
Rubygems
Bundle
Bundler
What's the best way to use SOAP with Ruby?
Ruby on-Rails
Ruby
Soap
Why is Ruby more suitable for Rails than Python?
Python
Ruby on-Rails
Ruby
Web Frameworks
Why are all Rails helpers available to all views, all the time? Is there a way to disable this?
Ruby on-Rails
Ruby
Helpers
Check if record was just destroyed in rails
Ruby on-Rails
Ruby
Activerecord
Rails: How do I use hidden_field in a form_for?
Ruby on-Rails
Forms
Hidden Field
Rails routing to handle multiple domains on single application
Ruby on-Rails
Ruby on-Rails-3
Routing
Routes
Subdomain
How to run rails s -p80 on 80 port?
Ruby on-Rails
Ruby on-Rails-3
Routes with Dash `-` Instead of Underscore `_` in Ruby on Rails
Ruby on-Rails
Routing
Rails Routing
How do I prepare test database(s) for Rails rspec tests without running rake spec?
Ruby on-Rails
Ruby on-Rails-3
Rspec
Rspec2
Specjour
i18n Pluralization
Ruby on-Rails
Internationalization
Rails I18n
Pluralize
Plural
Difference between an it block and a specify block in RSpec
Ruby on-Rails
Ruby
Rspec
Rails migrations: self.up and self.down versus change
Ruby on-Rails
Migration
Rails Activerecord
Rails Migrations
How to get Rails.logger printing to the console/stdout when running rspec?
Ruby on-Rails
Logging
Rspec
Console
Stdout
Syntax to skip creating tests, assets & helpers for `rails generate controller`?
Ruby on-Rails
Ruby on-Rails-3
Generator
Rails: Invalid byte sequence in US-ASCII (Argument Error) when I run rake db:seed
Ruby on-Rails
Rake
Seeding
Argument Error
"gem install therubyracer -v '0.10.2'" on osx mavericks not installing
Ruby on-Rails
Macos
Gem
Therubyracer
Osx Mavericks
NameError (uninitialized constant Paperclip::Storage::S3::AWS):
Ruby on-Rails
Ruby
Amazon Web-Services
Paperclip
Using ActiveRecord, is there a way to get the old values of a record during after_update
Ruby on-Rails
Activerecord
Model
Callback
How to detect attribute changes from model?
Ruby on-Rails
How to reset a single table in rails?
Ruby on-Rails
Converting UTC timestamp to ISO 8601 in Ruby
Ruby on-Rails
Ruby
Timestamp
Redis and Memcache or just Redis?
Ruby on-Rails
Memcached
Heroku
Redis
RSpec: What is the difference between let and a before block?
Ruby on-Rails
Unit Testing
Rspec
Curl Certificate Error when Using RVM to install Ruby 1.9.2
Ruby on-Rails
Curl
Rvm
Hash remove all except specific keys
Ruby on-Rails
Ruby
Ruby on-Rails-3
Bundler::GemNotFound: Could not find rake-10.3.2 in any of the sources
Ruby on-Rails
Rake
How to change the default binding ip of Rails 4.2 development server?
Ruby on-Rails
Ruby on-Rails-4.2
Rails 5: how to use $(document).ready() with turbo-links
Javascript
Jquery
Ruby on-Rails
Turbolinks
Ruby on-Rails-5
RuboCop: Line is too long ← How to Ignore?
Ruby on-Rails
Ruby
Sublimetext3
Rubocop
rails db:migrate vs rake db:migrate
Ruby on-Rails
Ruby on-Rails-5
Rake
Determine ruby version from within Rails
Ruby on-Rails
Ruby
Ruby Enterprise-Edition
capybara assert attributes of an element
Ruby on-Rails
Rspec
Capybara
Rails 3: How to "redirect_to" in Ajax call?
Ruby on-Rails
Ajax
Ruby on-Rails-3
Redirect
Factory-girl create that bypasses my model validation
Ruby on-Rails
Ruby on-Rails-3
Rspec
Factory Bot
Rspec Rails
Is it possible to mark a test as pending in MiniTest?
Ruby on-Rails
Testing
Minitest
Rspec 3 how to test flash messages
Ruby on-Rails
Ruby
Rspec
How do I set HTTP_REFERER when testing in Rails?
Ruby on-Rails
Ruby
Testing
Webrick is very slow to respond. How to speed it up?
Ruby on-Rails
Oracle
Sqlplus
Webrick
Rails- nested content_tag
Ruby on-Rails
Ruby on-Rails-3
Helpers
rails bundle clean
Ruby on-Rails
Ruby
Bundler
How to write if-condition in Haml?
Ruby on-Rails
Haml
Use bundle exec rake or just rake?
Ruby on-Rails
Rake
Bundler
Rails migration: best way to retrieve current migration version
Ruby on-Rails
Ruby on-Rails-3
Proper SCSS Asset Structure in Rails
Css
Ruby on-Rails
Asset Pipeline
Sass
How do I loop over a hash of hashes?
Ruby on-Rails
Ruby
Hash
Rails number_field alternative for decimal values
Ruby on-Rails
An error occurred while installing pg (0.17.1), and Bundler cannot continue
Ruby on-Rails
Macos
Postgresql
Ruby on-Rails-4
Rails association with multiple foreign keys
Ruby on-Rails
Ruby on-Rails-4
Associations
Model Associations
What does %i or %I do in Ruby?
Ruby on-Rails
Ruby
Slow initial server startup when using Phusion Passenger and Rails
Ruby on-Rails
Deployment
Passenger
Phusion
What exactly is a "role" in Capistrano?
Ruby on-Rails
Ruby
Capistrano
Set start date and expiration date for Rails cookies
Ruby on-Rails
Cookies
rails - Redirecting console output to a file
Ruby on-Rails
Ruby
File
Console
Getting the warning "Insecure world writable dir /home/chance " in PATH, mode 040777 for rails and gem
Ruby on-Rails
Ruby
Linux
Gem
Rvm
How to get request referer path?
Ruby on-Rails
Ruby
Rails Admin vs. ActiveAdmin
Ruby on-Rails
Ruby
Ruby on-Rails-3
Activeadmin
Ruby on-Rails-Plugins
Rails: Update model attribute without invoking callbacks
Ruby on-Rails
Ruby
Model
Attributes
Callback
Rails - Undefined method `stringify_keys'
Ruby on-Rails
Cannot execute "rails console" due to an error with readline
Ruby on-Rails
Ruby
Ruby on-Rails-3
Homebrew
Rbenv
cannot load such file -- sqlite3/sqlite3_native (LoadError) on ruby on rails
Ruby on-Rails
Sqlite
LEFT OUTER JOIN in Rails 4
Sql
Ruby on-Rails
Ruby on-Rails-4
Rails Activerecord
Mysql2
Migrations for Java
Java
Ruby on-Rails
Migration
What is the best way to seed a database in Rails?
Ruby on-Rails
Ruby
Database
Task
Seed
Using Rails, how can I set my primary key to not be an integer-typed column?
Ruby on-Rails
Database
Migration
Primary Key
Rails Migrations: Check Existence and Keep Going?
Ruby on-Rails
Migration
Turn off layout for one of action
Ruby on-Rails
Layout
Ruby on Rails: Clear a cached page
Ruby on-Rails
Caching
Rails sessions current practices
Ruby on-Rails
Ruby
Session
Cookies
What exactly is Arel in Rails 3.0?
Ruby on-Rails
Ruby
Activerecord
Arel
How does load differ from require in Ruby?
Ruby on-Rails
Ruby
LEFT OUTER joins in Rails 3
Ruby on-Rails
Ruby
Activerecord
How do I "activate" a different version of a particular gem?
Ruby on-Rails
Ruby
Rubygems
Rvm
Rails Paperclip how to delete attachment?
Ruby on-Rails
Ruby
Paperclip
Setting Devise Login to be root page
Ruby on-Rails
Ruby on-Rails-3
Devise
different layout for sign_in action in devise
Ruby on-Rails
Layout
Devise
Faker is producing duplicate data when used in factory_girl
Ruby on-Rails
Factory Bot
Rails -- use type column without STI?
Ruby on-Rails
Ruby on-Rails-3
Single Table-Inheritance
String "true" and "false" to boolean
Jquery
Ruby on-Rails
Ruby
Ruby on-Rails-3
Why is the first element always blank in my Rails multi-select, using an embedded array?
Html
Ruby on-Rails
Forms
Serialization
Multi Select
Ruby: How to make a public static method?
Ruby on-Rails
Ruby
How do I 'validate' on destroy in rails
Ruby on-Rails
Ruby
Callback
Why can you not have a foreign key in a polymorphic association?
Ruby on-Rails
Database
Foreign Key-Relationship
Polymorphic Associations
Rails /lib modules and
Ruby on-Rails
Ruby
Class
Module
How do I set the HTML options for collection_select in Rails?
Html
Ruby on-Rails
Drop Down-Menu
How do I escape the ERB tag in ERB
Ruby on-Rails
Unit Testing
Erb
Fixture
How do I check to see if my array includes an object?
Ruby on-Rails
Ruby
Creating a many to many relationship in Rails
Ruby on-Rails
Update one column to value of another in Rails migration
Ruby on-Rails
Activerecord
Migration
Timestamp
before_filter with parameters
Ruby on-Rails
Ruby
Ruby on-Rails-3
Before Filter
Rails not editable text field
Ruby on-Rails
Textfield
Form For
Adding Hash parameter in the URL Rails Routes
Ruby on-Rails
Routes
Should I specify exact versions in my Gemfile?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Rubygems
Bundler
Select where not null or empty in mongoid
Ruby on-Rails
Mongoid
What's the difference between request.remote_ip and request.ip in Rails?
Ruby on-Rails
Ruby
Rack
rails rspec before all vs before each
Ruby on-Rails
Rspec
Best Solution For Authentication in Ruby on Rails
Ruby on-Rails
Ruby
Authentication
Best Practices for reusing code between controllers in Ruby on Rails
Ruby on-Rails
Ruby
Welcome/home page in Ruby on Rails - best practice
Ruby on-Rails
Ruby
Find DOM element by ID when ID contains square brackets?
Javascript
Jquery
Ruby on-Rails
Dom
Parse a string as if it were a querystring in Ruby on Rails
Ruby on-Rails
Parsing
Query String
Safety of Thread.current[] usage in rails
Ruby on-Rails
Thread Safety
how to check the database name that ActiveRecord uses
Ruby on-Rails
Ruby
Configuration
How to instantiate class from name string in Rails?
Ruby on-Rails
Ruby on-Rails-3
String
Class
Instantiation
Why won't bundler install JSON gem?
Ruby on-Rails
Gem
Capistrano
Bundler
What to use instead of `render :text` (and `render nothing: true`) in rails 5.1 and later?
Ruby on-Rails
Ruby
Ruby on-Rails-5
How to skip ActiveRecord callbacks?
Ruby on-Rails
Rails Activerecord
SimpleForm without for (non model form)
Ruby on-Rails
Ruby on-Rails-3
Simple Form
What is the difference between send_data and send_file in Ruby on Rails?
Ruby on-Rails
Ruby
Sendfile
In Ruby on Rails, to extend the String class, where should the code be put in?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Rails 3: How to get today's date in specific timezone?
Ruby on-Rails
Ruby on-Rails-3
Date
Timezone
Why can't I install Rails on Lion using RVM?
Ruby on-Rails
Ruby
Macos
Rvm
How to get a single column's values into an array
Ruby on-Rails
Ruby
Ruby on-Rails-3
Best practice about empty belongs_to association
Ruby on-Rails
Ruby
Activerecord
How to have a drop down <select> field in a rails form?
Ruby on-Rails
Ruby on-Rails-3
Drop Down-Menu
Input
Selectlist
How do I find out which gem has a specific dependency?
Ruby on-Rails
Ruby
Gem
Bundler
Diagnosing the cause of slow view rendering
Ruby on-Rails
Regular expressions with validations in RoR 4
Ruby on-Rails
Ruby
Activerecord
Check if not nil and not empty in Rails shortcut?
Ruby on-Rails
Ruby
How to test ActionMailer deliver_later with rspec
Ruby on-Rails
Rspec
Actionmailer
Delayed Job
Rails Activejob
How do I use "gets" on a rake task?
Ruby on-Rails
Ruby
Rake
Rolling back a failed Rails migration
Mysql
Ruby on-Rails
Rails Activerecord
Rails Migrations
Array.join("\n") not the way to join with a newline?
Ruby on-Rails
Ruby
How to manage Rails database.yml
Mysql
Ruby on-Rails
Svn
Protected and private methods in Rails
Ruby on-Rails
Ruby
Visibility
Private
Protected
What is a "resource" in Rails?
Ruby on-Rails
Running ruby debug in rspec?
Ruby on-Rails
Rspec
Rake
Ruby Debug
Confused about 'respond_to' vs 'respond_to?'
Ruby on-Rails
railstutorial.org
How to add minutes to a Time object
Ruby on-Rails
Ruby
Time
"Order by" result of "group by" count?
Ruby on-Rails
Ruby on-Rails-3
Activerecord
Sql Order-By
how to safely replace all whitespaces with underscores with ruby?
Ruby on-Rails
Ruby
Ruby on-Rails-3
With Capybara, how do I switch to the new window for links with "_blank" targets?
Ruby on-Rails
Testing
Selenium
Webkit
Capybara
Return a specific http status code in Rails
Ruby on-Rails
Http
Http Status-Codes
Http Status-Code-503
where is devise implementation of "authenticate_user!" method?
Ruby on-Rails
Oauth
Devise
Oauth 2.0
Rails: what does schema.rb do?
Ruby on-Rails
Activerecord
Uploading a file in Rails
Ruby on-Rails
Ruby
File Upload
File Io
How can I determine if my rails is in the development environment and not the test environment?
Ruby on-Rails
Testing
Environment
Limitations in running Ruby/Rails on windows
Ruby on-Rails
Windows
Ruby
Ironruby
What exactly is Rake?
Ruby on-Rails
Ruby
Rake
Run rake task in controller
Ruby on-Rails
Ruby
Rake
rails - Finding intersections between multiple arrays
Ruby on-Rails
Ruby
Arrays
Array Intersect
Why flash message won't disappear?
Ruby on-Rails
Why do routes with a dot in a parameter fail to match?
Ruby on-Rails
Ruby on-Rails-3
Routing
Customizing Devise views in Rails
Ruby on-Rails
Devise
Views
Ruby on Rails: Switch from test_unit to rspec
Ruby on-Rails
Rspec
Gem
Testunit
Rails - passing parameters in link_to
Ruby on-Rails
Rails I18n, check if translation exists?
Ruby on-Rails
Internationalization
Rails I18n
Ruby method to remove accents from UTF-8 international characters
Ruby on-Rails
Utf 8
Internationalization
Is devise's token_authenticatable secure?
Ruby on-Rails
Api
Authentication
Devise
Rails Api
Rails 4: organize rails models in sub path without namespacing models?
Ruby on-Rails
Namespaces
Ruby on-Rails-4
Models
Subdirectory
Email validation in Ruby on Rails?
Ruby on-Rails
Email
How do I replace accented Latin characters in Ruby?
Ruby on-Rails
Ruby
Activerecord
Unicode
Utf 8
Correct datatype for latitude and longitude? (in activerecord)
Ruby on-Rails
Activerecord
Types
Difference between form_for , form_tag?
Ruby on-Rails
Group and count in Rails
Ruby on-Rails
Count
Rails - Best-Practice: How to create dependent has_one relations
Ruby on-Rails
Ruby
Activerecord
Ruby on-Rails-3
Associations
Rails Routes Namespaces and form_for
Ruby on-Rails
Rails: How I can get yesterday's date?
Ruby on-Rails
Ruby
Learning Web Development : Django vs Node vs Rails vs Others
Java
Ruby on-Rails
Django
node.js
unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055)
Ruby on-Rails
Ruby
Ruby on-Rails-3
Firefox
Automated Tests
Access webrick/rails from another computer on local network
Ruby on-Rails
Webrick
Overriding rails' default rake tasks
Ruby on-Rails
Rake
Rails: how can I get unique values from column
Ruby on-Rails
Ruby on-Rails-3
Unique
When to use self in Model?
Ruby on-Rails
Ruby on-Rails-3
Ruby on-Rails-3.1
Self
Rails, javascript not loading after clicking through link_to helper
Javascript
Jquery
Ruby on-Rails
How to fix "Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0"
Ruby on-Rails
Ruby
Rails Migration: add_reference to Table but Different Column Name For Foreign Key Than Rails Convention
Ruby on-Rails
Rails Migrations
To use self. or not.. in Rails
Ruby on-Rails
Ruby
ActiveRecord: How to get all attributes of a model that can be mass-assigned?
Ruby on-Rails
Activerecord
MySQL Install: ERROR: Failed to build gem native extension
Mysql
Ruby on-Rails
Macos
Rubygems
has_and_belongs_to_many vs has_many through
Ruby on-Rails
Ruby String to Date Conversion
Ruby on-Rails
Ruby
Datetime
Date
How do I submit a boolean parameter in Rails?
Ruby on-Rails
Parsing
Parameters
Boolean
Rspec Output Format: Documentation
Ruby on-Rails
Ruby
Rspec
Devise update user without password
Ruby on-Rails
Devise
Why is my custom rake task in lib/tasks not discovered in Rails 3?
Ruby on-Rails
Ruby on-Rails-3
Rake
Need to return JSON-formatted 404 error in Rails
Ruby on-Rails
Format the date using Ruby on Rails
Ruby on-Rails
Ruby
Adding a custom seed file
Ruby on-Rails
Ruby
Ruby on-Rails-3.2
Rake
Seed
How to add `unique` constraint to already existing index by migration
Ruby on-Rails
Postgresql
ActiveRecord::StatementInvalid: PG InFailedSqlTransaction
Ruby on-Rails
Postgresql
Activerecord
Rollback
Pg
rails server bin/rails:6: warning: already initialized constant APP_PATH error
Ruby on-Rails
What is the use of secret_key_base in rails 4
Ruby on-Rails
Ruby
Ruby on-Rails-4
Ruby on-Rails-5
Ruby on-Rails-6
'rails generate' commands hang when trying to create a model
Ruby on-Rails
Ruby on-Rails-4
Do I need to manually create a migration for a HABTM join table?
Ruby on-Rails
Rails: Access to current_user from within a model in Ruby on Rails
Ruby on-Rails
Ruby
Session
Rails Activerecord
How do I make dynamic ids in Haml?
Ruby on-Rails
Haml
Rails text_area size
Ruby on-Rails
Devise logging out automatically after password change
Ruby on-Rails
Scope with join on :has_many :through association
Ruby on-Rails
Ruby on-Rails-3
Add a new asset path in Rails 3.1
Ruby on-Rails
Path
Ruby on-Rails-3.1
Asset Pipeline
How do I confirm a javascript popup with Capybara?
Ruby on-Rails
Testing
Capybara
devise and multiple "user" models
Ruby on-Rails
Devise
How does Rails ActiveRecord chain "where" clauses without multiple queries?
Ruby on-Rails
Activerecord
Where to put Ruby helper methods for Rails controllers?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Ruby on-Rails-3.2
View Helpers
How do you add a custom http header?
Ruby on-Rails
Http
Http Headers
Rails API : Best way to implement authentication?
Ruby on-Rails
Ruby on-Rails-4
Rails Api
Difference between after_create, after_save and after_commit in rails callbacks
Ruby on-Rails
Ruby
Activerecord
Callback
Weird issue with devise valid_password?
Ruby on-Rails
Devise
Ruby on-Rails-3.2
Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib (LoadError)
Ruby on-Rails
Ruby
Ruby on-Rails-4
How do I get Haml to work with Rails?
Ruby on-Rails
Ruby
Netbeans
Haml
How do you handle Rail's flash with Ajax requests?
Ruby on-Rails
Ajax
how to add html id to rails form_tag
Html
Ruby on-Rails
Difference between has_one and belongs_to in Rails?
Ruby on-Rails
Ruby
Has One
How do I use gems with Ubuntu?
Ruby on-Rails
Ruby
Ubuntu
Rubygems
Capistrano
How to return HTML directly from a Rails controller?
Ruby on-Rails
RuntimeError with mysql2 and rails3 (bundler)
Mysql
Ruby on-Rails
Bundler
Ruby on Rails will_paginate an array
Ruby on-Rails
Pagination
Will Paginate
How to access URL helper from rails module
Ruby on-Rails
Ruby
Url
Model
Helper
Connecting Rails 3.1 with Multiple Databases
Ruby on-Rails
Ruby
Ruby on-Rails-3
Rails Activerecord
Activeresource
Rails .where vs .find
Ruby on-Rails
Ruby on-Rails-3
How to say "any_instance" "should_receive" any number of times in RSpec
Ruby on-Rails
Testing
Rspec
Mocking
mocha.js
Rails.cache.clear certain key names?
Ruby on-Rails
Caching
Memcached
Dalli
In Rails, what's the difference between find_each and where?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Ruby on-Rails-4
Activerecord
What is your preferred way to produce charts in a Ruby on Rails web application?
Ruby on-Rails
Ruby
Charts
How to test JSON result from Ruby on Rails functional tests?
Ruby on-Rails
Json
Tdd
How do I get the number of seconds between two DateTimes in Ruby on Rails
Ruby on-Rails
Datetime
Rails Active Record find(:all, :order => ) issue
Ruby on-Rails
Ruby
Activerecord
Sort array returned by ActiveRecord by date (or any other column)
Ruby on-Rails
Ruby
Arrays
Activerecord
Ruby on Rails: Submitting an array in a form
Ruby on-Rails
Arrays
Forms
Hash
Manually Retry Job in Delayed_job
Ruby on-Rails
Ruby
Rubygems
Delayed Job
Static pages in Ruby on Rails
Ruby on-Rails
Ruby
incompatible character encodings: ASCII-8BIT and UTF-8
Ruby on-Rails
Ruby
Ruby on-Rails-3
Haml
Rails 3.1 asset pipeline: how to load controller-specific scripts?
Ruby on-Rails
Ruby on-Rails-3.1
Asset Pipeline
Assets
Sprockets
Rails: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
Javascript
Ruby on-Rails
Ruby on-Rails-3.1
V8
Dreamhost
How do I chain if statements in Jekyll?
Ruby on-Rails
Ruby
Jekyll
Unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055)
Ruby on-Rails
Cucumber
Capybara
Selenium Webdriver
Rspec Rails
Generate migration - create join table
Ruby on-Rails
Ruby on-Rails-3
Ruby on-Rails-4
Migration
Jointable
An error occurred while installing rugged
Ruby on-Rails
Git
Gem
Gitlab
Rugged
Your bundle is locked to mimemagic (0.3.5), but that version could not be found in any of the sources listed in your Gemfile
Ruby on-Rails
Ruby on-Rails-6
Mimemagic
NoMethodError when trying to invoke helper method from Rails controller
Ruby on-Rails
Ruby
link_to method and click event in Rails
Ruby on-Rails
Ruby
How to stop a Daemon Server in Rails?
Ruby on-Rails
Ubuntu
Rails ActiveRecord :joins with LEFT JOIN instead of INNER JOIN
Ruby on-Rails
Activerecord
Join
Left Join
Inner Join
How can I set paperclip's storage mechanism based on the current Rails environment?
Ruby on-Rails
Amazon S3
Paperclip
Where is the documentation page for ActiveRecord data types?
Ruby on-Rails
Rails Migrations
Alias for column names in Rails
Ruby on-Rails
Database
Ruby on-Rails-3
Activerecord
Update a column, all rows
Ruby on-Rails
Rails 3 + activerecord, the best way to "mass update" a single field for all the records that meet a condition
Ruby on-Rails
Activerecord
render partial :object vs :locals
Ruby on-Rails
What the difference between mysql and mysql2 gem
Mysql
Ruby on-Rails
Ruby
Rubygems
How to solve "certificate verify failed" on Windows?
Ruby on-Rails
Ssl
ActiveAdmin with has_many problem; undefined method 'new_record?'
Ruby on-Rails
Admin
Has Many
Formtastic
Activeadmin
How can I handle errors with HTTParty?
Ruby on-Rails
Ruby
Httparty
Using multiple PostgreSQL schemas with Rails models
Ruby on-Rails
Postgresql
Models
Database Schema
Schema Design
Remove order from ActiveRecord scope
Ruby on-Rails
Activerecord
Ransack
ActiveRecord Find By Year, Day or Month on a Date field
Ruby on-Rails
Ruby on-Rails-3
Activerecord
Rails Activerecord
Parsing string to add to URL-encoded URL
Ruby on-Rails
Ruby
Ruby on-Rails-3
Cannot install pg gem in Mavericks with Postgres.app
Ruby on-Rails
Macos
Postgresql
Osx Mavericks
Pg
can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.0
Ruby on-Rails
Ruby
Sqlite
How do I override rails naming conventions?
Ruby on-Rails
Naming Conventions
Pluralize
How to monitor delayed_job with monit
Ruby on-Rails
Ruby
Delayed Job
Monit
God
How are require, require_dependency and constants reloading related in Rails?
Ruby on-Rails
Require
validates_uniqueness_of passes on nil or blank (without allow_nil and allow_blank)
Ruby on-Rails
Activerecord
Validates Uniqueness-Of
PostgreSQL GROUP BY different from MySQL?
Sql
Mysql
Ruby on-Rails
Postgresql
Heroku
Add image to layout in ruby on rails
Ruby on-Rails
Ruby
Image
Layout
Getting types of the attributes in an ActiveRecord object
Ruby on-Rails
Ruby
Activerecord
Activemodel
Ruby Gems Not Installing, Hangs While Getting Gems
Ruby on-Rails
Ruby
Macos
Rubygems
Rails/Rspec Make tests pass with http basic authentication
Ruby on-Rails
Rspec
Http Authentication
getaddrinfo: nodename nor servname provided, or not known
Ruby on-Rails
Ruby
Capistrano
Delayed Job
Where are rake tasks defined?
Ruby on-Rails
Ruby
Rake
Rakefile
Embedded HTML in link_to body in Rails
Ruby on-Rails
Link To
How can I know when to "refresh" my model object in Rails?
Ruby on-Rails
Ruby
Testing
Activerecord
Routing to static html page in /public
Ruby on-Rails
Ruby on-Rails-3
Url
Routing
undefined method `get' for #<RSpec::Core::ExampleGroup::Nested_1:0x00000106db51f8>
Ruby on-Rails
Rspec
Rails Select Drop Down for States?
Ruby on-Rails
Ruby
Drop Down-Menu
Run migrations from rails console
Ruby on-Rails
Ruby on-Rails-3.1
Rails 3 skip validations and callbacks
Ruby on-Rails
Ruby on-Rails-3
Activerecord
What's the difference between db:test:clone, db:test:clone_structure, db:test:load, and db:test:prepare?
Ruby on-Rails
Database
Unit Testing
Jasmine vs. Mocha JavaScript testing for Rails 3.1+
Javascript
Ruby on-Rails
Jasmine
mocha.js
How to add favicon in rails 3.2
Ruby on-Rails
Favicon
Can't access site on EC2 instance via public ip
Ruby on-Rails
Nginx
Amazon Ec2
rails simple_form fields not related to the model
Ruby on-Rails
Simple Form
Failed to build gem native extension — Rails install
Ruby on-Rails
Ruby
Rubygems
Rails 4 Strong parameters : permit all attributes?
Ruby on-Rails
Ruby on-Rails-3
Strong Parameters
Why Bundle Install is installing gems in vendor/bundle?
Ruby on-Rails
Ruby
Gem
Rvm
Bundler
TZInfo::DataSourceNotFound error starting Rails v4.1.0 server on Windows
Ruby on-Rails
Ruby
Ruby on-Rails-4.1
Tzinfo
Undefined method raise_in_transactional_callbacks=' for ActiveRecord::Base:Class (NoMethodError)
Ruby on-Rails
Ruby
ActiveRecord OR query Hash notation
Ruby on-Rails
Ruby on-Rails-4
Activerecord
Rails Activerecord
Ruby on-Rails-5
How to do static content in Rails?
Ruby on-Rails
Ruby
Static Content
How do I validate two fields for uniqueness
Ruby on-Rails
When do I use save!, create! and update_attributes! in Rails?
Ruby on-Rails
Activerecord
Transactions
Send email from rails console
Ruby on-Rails
Sendmail
Adding lib to 'config.autoload_paths' in Rails 3 does not autoload my module
Ruby on-Rails
undefined method `devise_for' in rails
Ruby on-Rails
Methods
Devise
Undefined
Best Practice: Try vs Rescue
Ruby on-Rails
Ruby
is not checked out... bundle install does NOT fix help!
Ruby on-Rails
Ruby
Git
Gem
Ruby on Rails Routes - difference between get and match
Ruby on-Rails
Ruby on-Rails-3
Rails 3.1, RSpec: testing model validations
Ruby on-Rails
Ruby on-Rails-3
Rspec
Rspec2
Rspec Rails
Rails validation required numericality even though presence is not set to true
Ruby on-Rails
Ruby
Ruby on-Rails-3
Can we call a Controller's method from a view (as we call from helper ideally)?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Ruby on-Rails-3.1
Installing PostgreSQL on Ubuntu for Ruby on Rails
Ruby on-Rails
Ruby
Postgresql
Ubuntu
Heroku
PG::Error: SELECT DISTINCT, ORDER BY expressions must appear in select list
Ruby on-Rails
Ruby
Ruby on-Rails-3
Postgresql
Distinct
nokogiri gem installation error
Ruby on-Rails
Ruby
Macos
Rubygems
Nokogiri
rails console doesn't load due to libreadline
Ruby on-Rails
Ruby
Macos
How to fix: error: '<filename>' does not have a commit checked out fatal: adding files failed when inputting "git add ." in command prompt
Ruby on-Rails
Git
Command Line
Gitlab
Ruby on Rails scalability/performance?
Ruby on-Rails
Ruby
Scalability
Is Grails (now) worth it?
Ruby on-Rails
Grails
Groovy
Language Comparisons
Why is rake db:migrate:reset not listed in rake -T?
Ruby on-Rails
Ruby
Rake
How do I get unique elements in this array?
Ruby on-Rails
Ruby
Rails 3 / Form without Model: How do I create a form that is not tied to a model?
Ruby on-Rails
Ruby on-Rails-3
Activerecord
Passing parameters to partial view
Ruby on-Rails
Ruby on-Rails-3
Rails: Validate unique combination of 3 columns
Ruby on-Rails
Ruby on-Rails-3
Ruby JSON parse changes Hash keys
Ruby on-Rails
Ruby
Json
Hash
Embedding JSON Data into YAML file
Ruby on-Rails
Ruby
Ruby on-Rails-3
Json
Yaml
Differences in rails between new + save and create
Ruby on-Rails
Ruby on-Rails-3
ActiveRecord find_each combined with limit and order
Sql
Ruby on-Rails
Activerecord
Composite primary keys versus unique object ID field
Ruby on-Rails
Database
Design Patterns
Database Design
Rails has_many :through Find by Extra Attributes in Join Model
Ruby on-Rails
Ruby
Has Many
Has Many-Through
I have a Rails task: should I use script/runner or rake?
Ruby on-Rails
Ruby
Rake
How do I change the default "www.example.com" domain for testing in rails?
Ruby on-Rails
Rspec
Is there a way to avoid automatically updating Rails timestamp fields?
Ruby on-Rails
Ruby
Activerecord
Timestamp
accepts_nested_attributes_for child association validation failing
Ruby on-Rails
Validation
Activerecord
Nested
Rails flash message remains for two page loads
Ruby on-Rails
Ruby
Ruby Method calls declared in class body
Ruby on-Rails
Ruby
pass parameter by link_to ruby on rails
Ruby on-Rails
Parameters
Rails has_one :through association
Ruby on-Rails
Associations
Rails Activerecord
Rails Models
How do I set default host for url helpers in rails?
Ruby on-Rails
Url
Configuration
Rails before_validation strip whitespace best practices
Ruby on-Rails
Validation
Model
Convert Ruby Date to Integer
Ruby on-Rails
Ruby
Datetime
Date
Capybara: How to test the title of a page?
Ruby on-Rails
Rspec
Capybara
Using Active Record generators after Mongoid installation?
Ruby on-Rails
Activerecord
Mongoid
Mongodb
Rails 3. How to display two decimal places in edit form?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Forms
Access Asset Path from Rails Controller
Ruby on-Rails
Ruby on-Rails-3.1
Sprockets
Find unused code in a Rails app
Ruby on-Rails
Ruby
Refactoring
Code Coverage
How do I convert an array of strings into a comma-separated string?
Ruby on-Rails
Ruby
Arrays
Will UUID as primary key in PostgreSQL give bad index performance?
Ruby on-Rails
Ruby
Postgresql
Heroku
Shoulda/RSpec matchers - conditional validation
Ruby on-Rails
Ruby
Rspec
Shoulda
Rails emits warning: "Rack::File headers parameter replaces cache_control after Rack 1.5"
Ruby on-Rails
Ruby on-Rails-3.2
Write to rails console
Ruby on-Rails
Ruby
Debugging
Development Environment
Rails Console
Call method only if it exists
Ruby on-Rails
Ruby
Rails optional belongs_to
Ruby on-Rails
Ruby
Activerecord
Does Rails 4 have support for OR queries
Ruby on-Rails
Ruby on-Rails-4
How can I see the delayed job queue?
Ruby on-Rails
Delayed Job
How to pass parameters to ActiveModel serializer
Ruby on-Rails
Active Model-Serializers
Why doesn't Rails autoload classes from app/services?
Ruby on-Rails
Autoload
Ruby on-Rails-4.2
Ruby 2.4 and Rails 4 stack level too deep (SystemStackError)
Ruby on-Rails
Ruby
Listen error: unable to monitor directories for changes
Ruby on-Rails
Ruby
Ubuntu
Upgraded Rails to 6, getting Blocked host Error
Ruby on-Rails
Cloud9
Ruby on-Rails-6
Rails model without database
Ruby on-Rails
Ruby
Activerecord
How do I pass multiple arguments to a ruby method as an array?
Ruby on-Rails
Ruby
Arrays
Methods
Arguments
rails run specific migration
Ruby on-Rails
Migration
How to Determine if Rails Association is Eager Loaded?
Ruby on-Rails
Activerecord
Eager Loading
How to use unscoped on associated relations in Rails3?
Ruby on-Rails
Ruby on-Rails-3
Scope
Arel
Rails - find or create - is there a find or build?
Ruby on-Rails
Rails + New Relic: What does RPM mean?
Ruby on-Rails
Ruby on-Rails-3
Rpm
Newrelic
disabling Devise registration for production environment only
Ruby on-Rails
Devise
Registration
Production Environment
How to set config.action_controller.default_url_options = {:host = '#''} on per environment basis
Ruby on-Rails
Ruby on-Rails-3
Actioncontroller
Routing with an optional parameter
Ruby on-Rails
Routing
Rails Routing
Ruby on-Rails-2
How to get a query string from a URL in Rails
Ruby on-Rails
Ruby
Ruby on-Rails-3
Using a Rails helper method within a javascript asset
Javascript
Ruby on-Rails
Ruby on-Rails-3
Asset Pipeline
Erubis
ruby-debug with Ruby 1.9.3?
Ruby on-Rails
Ruby
Ruby 1.9.3
Ruby Debug
Rails: How Does csrf_meta_tag Work?
Ruby on-Rails
Csrf
Does has_secure_password use any form of salting?
Ruby on-Rails
Ruby on-Rails-3
Encryption
Passwords
Salt
How to change hash keys from `Symbol`s to `String`s?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Hash
How do I simulate hitting enter in an input field with Capybara and ChromeDriver?
Javascript
Jquery
Ruby on-Rails
Capybara
Selenium Chromedriver
How to view the entire Rails console history?
Ruby on-Rails
Dividing elements of a ruby array into an exact number of (nearly) equal-sized sub-arrays
Ruby on-Rails
Ruby
Arrays
Ruby 1.8.7
Cookies vs Sessions with CookieStore
Ruby on-Rails
Ruby on-Rails-3
Session
Cookies
angularjs: allows only numbers to be typed into a text box
Javascript
Ruby on-Rails
Angularjs
Numeric
Increment variable in ruby
Ruby on-Rails
Ruby
Is this Rails JSON authentication API (using Devise) secure?
Ruby on-Rails
Json
Api
Security
Devise
'Back' browser action in Ruby on Rails
Ruby on-Rails
Browser
How to set a file upload programmatically using Paperclip
Ruby on-Rails
Ruby
Paperclip
File Upload
What is the difference between _url and _path while using the routes in rails
Ruby on-Rails
Routes
How to display the current date in "mm/dd/yyyy" format in Rails
Ruby on-Rails
Ruby
Date
How to flatten an array of arrays - but not all the way down
Ruby on-Rails
Ruby
attr_accessor default values
Ruby on-Rails
Ruby
Attr Accessor
Rails load YAML to hash and reference by symbol
Ruby on-Rails
Hash
Yaml
Symbols
Devise - create user account with confirmed without sending out an email?
Ruby on-Rails
Devise
FactoryGirl and polymorphic associations
Ruby on-Rails
Factory Bot
Add css class to rails link_to helper
Ruby on-Rails
Rails includes with conditions
Sql
Ruby on-Rails
Rails 4: Insert Attribute Into Params
Ruby on-Rails
Strong Parameters
has_many, belongs_to relation in active record migration rails 4
Ruby on-Rails
Rails Activerecord
Ruby on-Rails-4
Rails Migrations
Rails: ActiveRecord query based on association value
Ruby on-Rails
Ruby
Activerecord
Associations
Error when trying to run rspec: `require': cannot load such file -- rails_helper (LoadError)
Ruby on-Rails
Command Line
Rspec
Rails ExecJS::ProgramError in Pages#home?
Ruby on-Rails
Windows
Turbolinks
Execjs
Why Rails 5 uses ApplicationRecord instead of ActiveRecord::Base?
Ruby on-Rails
Ruby on-Rails-4
Ruby on-Rails-5
Controller spec unknown keyword: id
Ruby on-Rails
Ruby
Rspec
Ruby on-Rails-5
Rspec Rails
Rails, MySQL and Snow Leopard
Mysql
Ruby on-Rails
Ruby
Osx Snow-Leopard
Adding a directory to the load path in Rails?
Ruby on-Rails
Ruby
What is the difference between Ruby and Ruby on Rails?
Ruby on-Rails
Ruby
Rails ActiveRecord: Find All Users Except Current User
Ruby on-Rails
Ruby
Activerecord
Does rails have an opposite of 'humanize' for strings?
Ruby on-Rails
Rails -- Add a line break into a text area
Html
Ruby on-Rails
Textarea
Ruby on Rails - Render JSON for multiple models
Ruby on-Rails
Json
Ruby on-Rails-3
Render
Removing "utf8=✓" from Rails 3 form submissions
Ruby on-Rails
Utf 8
Route alias in Rails
Ruby on-Rails
How do I change the load order of initializers in Rails?
Ruby on-Rails
Validate the number of has_many items in Ruby on Rails
Ruby on-Rails
Validation
Tagging
Has Many
What is the right way to embed image into email using Rails?
Ruby on-Rails
Actionmailer
How can I specify the order that before_filters are executed?
Ruby on-Rails
Before Filter
Using the seed value from rake in unit and functional tests
Ruby on-Rails
Rake
Rake Test
Can Rails console reload modules under lib?
Ruby on-Rails
Console
Is there a Rails Console command (Rails 3+) to reload changed code?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Add virtual attribute to json output
Ruby on-Rails
Json
Truncate string with Rails?
Ruby on-Rails
Ruby
Truncate
Ruby syntax: break out from 'each.. do..' block
Ruby on-Rails
Ruby
Ruby on-Rails-3
Ruby on-Rails-3.1
Restart my heroku application automatically
Ruby on-Rails
Heroku
how to find the cause of ActiveRecord ROLLBACK
Ruby on-Rails
Activerecord
Allow public connections to local Ruby on Rails Development Server
Ruby on-Rails
Ruby
Rails how to delete a file without failing on error
Ruby on-Rails
Ruby
Ruby on-Rails-3
HTML5 'required' validation in Ruby on Rails forms
Ruby on-Rails
Html
Validation
Error 'SECURITY WARNING: No secret option provided to Rack::Session::Cookie'
Ruby on-Rails
How to display a Rails flash notice upon redirect?
Ruby on-Rails
Ruby on-Rails-3
Ruby on-Rails-3.2
Ruby on-Rails-4
Rails Flash
Why am I asked to run 'rake db:migrate RAILS_ENV=test'?
Ruby on-Rails
Rails Migrations
Ruby on-Rails-4
FactoryBot: create the same object multiple times
Ruby on-Rails
Rspec
Factory Bot
How to remove index in rails
Ruby on-Rails
"Incomplete response received from application" from nginx / passenger
Ruby on-Rails
Nginx
Passenger
ExecJS::ProgramError: Unexpected token punc «(», expected punc «:» when running rake assets:precompile on production
Javascript
Ruby on-Rails
Git
Deployment
Execjs
Rails 5, Rspec: Environment data not found in the schema
Ruby on-Rails
Rspec
Rspec Rails
Ruby on-Rails-5
What is the purpose of a `transient do` block in FactoryBot factories?
Ruby on-Rails
Ruby
Rspec
Factory Bot
LoadError: Could not load the 'listen' gem (Rails 5)
Ruby on-Rails
Ruby on-Rails-5
Listen
Why does Rails fails to boot with "Expected to find a manifest file in `app/assets/config/manifest.js` (Sprockets::Railtie::ManifestNeededError)"?
Ruby on-Rails
Ruby on-Rails-5
Deploying a Git subdirectory in Capistrano
Ruby on-Rails
Git
Deployment
Capistrano
Rails: An elegant way to display a message when there are no elements in database
Ruby on-Rails
Ruby
Loops
Iterator
has_and_belongs_to_many, avoiding dupes in the join table
Ruby on-Rails
Activerecord
Best way to generate slugs (human-readable IDs) in Rails
Ruby on-Rails
Slug
Rails: Should partials be aware of instance variables?
Ruby on-Rails
Ruby
Partial
Actionview
"WARNING: Can't mass-assign protected attributes"
Ruby on-Rails
Activerecord
Devise
Sinatra vs. Rails
Ruby on-Rails
Ruby
Sinatra
How to "soft delete" user with Devise
Ruby on-Rails
Ruby
Authentication
Ruby on Rails 3 : "superclass mismatch for class ..."
Ruby on-Rails
Ruby
Ruby on-Rails-3
Suppress Ruby warnings when running specs
Ruby on-Rails
Ruby
Rspec
Warnings
Is there an easy way to make a Rails ActiveRecord model read-only?
Ruby on-Rails
Ruby on-Rails-3
Activerecord
Include blank for first item in select list in options_for_select tag
Ruby on-Rails
Ruby on-Rails-3
Erb
Html Select
Does rename_column take care of indexes?
Ruby on-Rails
Ruby on-Rails-3
Activerecord
Rails Activerecord
Database Indexes
Is it possible to define a 'before_save' callback in a module?
Ruby on-Rails
Ruby
How to return HTTP 204 in a Rails controller
Ruby on-Rails
Ruby
Form is submitted when I click on the button in form. How to avoid this?
Html
Ruby on-Rails
Twitter Bootstrap
How does local_assigns work in Rails?
Ruby on-Rails
Views
Nokogiri 'Failed to build gem native extension' when I run bundle install
Ruby on-Rails
Rubygems
Bundle
Nokogiri
Docker Cannot link to a non running container
Mysql
Ruby on-Rails
Docker
Docker Compose
Looking for suggestions for building a secure REST API within Ruby on Rails
Ruby on-Rails
Ruby
Security
Rest
asp.net Web-Api
redirect_to using POST in rails
Ruby on-Rails
Ruby
Redirect
How to delete all data from all tables in Rails?
Ruby on-Rails
Activerecord
Reading the first line of a file in Ruby
Ruby on-Rails
Ruby
Git
File Io
Capistrano
calling custom validation methods in Rails
Ruby on-Rails
Validation
Does dependency injection exist in Rails?
Ruby on-Rails
Ruby
Spring
Dependency Injection
no such file to load -- rubygems (LoadError)
Ruby on-Rails
Ruby
Rubygems
Cannot add a NOT NULL column with default value NULL in Sqlite3
Ruby on-Rails
Database
Sqlite
Sqlite3 Ruby
How to know whether a model is new or not?
Ruby on-Rails
Ruby
Model
Does rake db:schema:dump recreate schema.rb from migrations or the database itself?
Ruby on-Rails
Schema
Migration
Rake
ImageMagick / RMagick - Can't install RMagick 2.13.1. Can't find Magick-config
Ruby on-Rails
Imagemagick
Rmagick
OmniAuth & Facebook: certificate verify failed
Ruby on-Rails
Facebook
Railscasts
Omniauth
How can I pass a parameter for gem installation when I run bundle install?
Ruby on-Rails
Ruby on-Rails-3
Gem
Bundler
Rails, Ruby, how to sort an Array?
Ruby on-Rails
Ruby
Ruby on-Rails-3
How to stub ApplicationController method in request spec
Ruby on-Rails
Ruby
Rspec
Capybara
Why am I getting infinite redirect loop with force_ssl in my Rails app?
Ruby on-Rails
Ruby on-Rails-3
Redirect
Ssl
Nginx
file download link in rails
Ruby on-Rails
Ruby on-Rails-3
Hyperlink
Download
Link To
Postgresql adapter (pg): could not connect to server
Ruby on-Rails
Postgresql
Rails Postgresql
Pg
ActionController::InvalidAuthenticityToken in RegistrationsController#create
Ruby on-Rails
Devise
Ruby on-Rails-4
How to use gem to install Rails on Ubuntu
Ruby on-Rails
Ruby
Linux
Ubuntu
GROUP BY and COUNT using ActiveRecord
Sql
Ruby on-Rails
Ruby
Postgresql
Activerecord
How can I count the number of records that have a unique value in a particular field in ROR?
Ruby on-Rails
Ruby
Activerecord
How (and whether) to populate rails application with initial data
Ruby on-Rails
Data Migration
Why can't I install the SQLite gem?
Ruby on-Rails
Ruby
Sqlite
Gem
How do I use CSS with a ruby on rails application?
Ruby on-Rails
Css
Ruby
Is there a good HAML -> ERB/HTML converter?
Ruby on-Rails
Haml
Converter
will_paginate undefined method `total_pages'
Ruby on-Rails
Will Paginate
Scope of Constants in Ruby Modules
Ruby on-Rails
Ruby
Module
Constants
Rails: Multi-submit buttons in one Form
Ruby on-Rails
Forms
Action
Rails 3 using Devise: How to allow someone to log in using their Facebook account?
Ruby on-Rails
Facebook
Devise
Ruby on rails: singular resource and form_for
Ruby on-Rails
Resources
Router
Form For
Singular
Rails 3: How to create a new nested resource?
Ruby on-Rails
Ruby on-Rails-3
How do I access a Rails configuration value during runtime?
Ruby on-Rails
How to obtain first day of next month in ruby?
Ruby on-Rails
Ruby
In Rails, how to see all the "path" and "url" methods added by Rails's routing? (update: using Rails console)
Ruby on-Rails
Ruby on-Rails-3
Rspec testing redirect_to :back
Ruby on-Rails
Redirect
Rspec
Rspec2
convert string to specific datetime format?
Ruby on-Rails
Ruby
Validate presence of field only if another field is blank - Rails
Ruby on-Rails
Ruby on-Rails-3
Why do Ruby on Rails professionals NOT use Scaffolding?
Ruby on-Rails
Ruby on-Rails-3
Scaffolding
rails select_tag selected value
Ruby on-Rails
Validate attribute only if it present (only if user fill in it)
Ruby on-Rails
Ruby
Validation
how to test params passed into a controller in rails 3, using rspec?
Ruby on-Rails
Rspec
Rails 3. How to add a helper that ActiveAdmin will use?
Ruby on-Rails
Ruby
Helpers
Activeadmin
Failing to access environment variables within `database.yml` file
Ruby on-Rails
Environment Variables
Yaml
Ruby on-Rails-2
mysql2 gem compiled for wrong mysql client library
Mysql
Ruby on-Rails
Windows
Mysql2
What's the correct syntax for remove_index in a Rails 3.1.0 migration?
Ruby on-Rails
Ruby on-Rails-3.1
Rails Migrations
Undefined local variable or method `unconfirmed_email' when registering users?
Ruby on-Rails
Ruby on-Rails-3
Devise
How can you speed up the Rails Asset Pipeline precompile process?
Ruby on-Rails
Asset Pipeline
Get select value of dropdown for capybara testing
Ruby on-Rails
Rspec
Capybara
How can i remove a column from table using rails console
Ruby on-Rails
Activerecord
Ruby on-Rails-3.2
Rails Migrations
Rails/Rspec - testing a redirect in the controller
Ruby on-Rails
Redirect
Rspec
Routes
Couldn't find file 'jquery-ui'
Javascript
Jquery
Ruby on-Rails
Can I use font-awesome icons on emails
Ruby on-Rails
Ruby on-Rails-3
Font Awesome
Rails 4 images not loading on heroku
Ruby on-Rails
Heroku
Rails 4 how to ignore pending migrations
Ruby on-Rails
Ruby
Activerecord
'require': cannot load such file -- 'nokogiri\nokogiri' (LoadError) when running `rails server`
Ruby on-Rails
Ruby
Nokogiri
How do you write a case insensitive query for both MySQL and Postgres?
Mysql
Ruby on-Rails
Database
Postgresql
Heroku
What is the meaning of "h" in "<%=h [ ...] %>"?
Ruby on-Rails
Ruby
Templates
add_column for references (Rails)
Ruby on-Rails
Schema
Log to database instead of log files
Ruby on-Rails
Database
Logging
Rails - Find By with 2 fields?
Ruby on-Rails
Ruby on-Rails-3
Rails: How to make Date strftime aware of the default locale?
Ruby on-Rails
Ruby
Localization
Rails I18n
Strftime
Rubygems, Bundler and RVM confusion
Ruby on-Rails
Ruby
Rubygems
Bundler
Rvm
delayed_jobs vs resque vs beanstalkd?
Ruby on-Rails
Redis
Resque
Beanstalkd
Finding the session id in rails 3
Ruby on-Rails
Ruby
Session
Rails 3: yield/content_for with some default value?
Ruby on-Rails
Ruby
Yield
Rails 3 and Heroku: automatically "rake db:migrate" on push?
Ruby on-Rails
Git
Heroku
Rails 3: How to identify after_commit action in observers? (create/update/destroy)
Ruby on-Rails
Ruby on-Rails-3
Transactions
Observer Pattern
Where can I find options for "rails new" command?
Ruby on-Rails
ActiveRecord Arel OR condition
Sql
Ruby on-Rails
Ruby
Activerecord
Arel
Role does not exist and unable to create database when using PostgreSQL
Ruby on-Rails
Ruby
Ruby on-Rails-3
Postgresql
What does the ~> symbol mean in a bundler Gemfile?
Ruby on-Rails
Bundler
Gemfile
How to list all Rails 3 rake tasks? rake -T seems incomplete
Ruby on-Rails
Rake
Rails ActiveRecord Query for Not Equal
Ruby on-Rails
Activerecord
Using send_file to download a file from Amazon S3?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Amazon S3
Ruby on-Rails-3.2
Rails converts empty arrays into nils in params of the request
Ruby on-Rails
Json
to_d to always return 2 decimals places in ruby
Ruby on-Rails
Ruby
Math
Decimal
Currency
Difference between $Bundle install and $Bundle update
Ruby on-Rails
How do I fetch multiple hash values at once?
Ruby on-Rails
Ruby
Hash
Destructuring
Difference between as_json and to_json method in Ruby
Ruby on-Rails
Ruby
How to fix Rails's warning messages with Ruby 2.7.0
Ruby on-Rails
Ruby
Warnings
Ruby on-Rails-6
Ruby 2.7
Rails 6.1, Ruby 3.0.0: tests error as they cannot load rexml
Ruby on-Rails
Ruby
Ruby 3
In a Rails Migration (MySQL), can you specify what position a new column should be?
Mysql
Ruby on-Rails
Migration
How to save a base64 string as an image using ruby
Ruby on-Rails
Ruby
Image
File Io
Base64
What does the "$" character mean in Ruby?
Ruby on-Rails
Ruby
Global Variables
Dollar Sign
Load Path
Rails: Return a 401?
Ruby on-Rails
Http
What Ruby and Rails Developers Ought To Know?
Ruby on-Rails
Ruby
Resize existing images to new style in paperclip & RMagick
Ruby on-Rails
Ruby
Imagemagick
Paperclip
Rmagick
What does Rails 3 session_store domain :all really do?
Ruby on-Rails
Session
Cookies
Subdomain
Rails Devise: get object of the currently logged in user?
Ruby on-Rails
Ruby on-Rails-Plugins
Devise
How do I set a blank value for an f.select form field
Ruby on-Rails
Ruby
Select
:as in rails routes.rb
Ruby on-Rails
Ruby
Ruby on-Rails-3
Routing
Find the newest record in Rails 3
Ruby on-Rails
Ruby
Ruby on-Rails-3
Rails: Error running wkhtmltopdf -- (error while loading shared libraries)
Ruby on-Rails
Pdf Generation
Wkhtmltopdf
How do Formtastic and simple_form compare?
Ruby on-Rails
Rubygems
Rails: activeadmin overriding create action
Ruby on-Rails
Activeadmin
Inherited Resources
Difference between Render and Render Partial and Yield
Ruby on-Rails
Ruby on-Rails-3.2
Rails order by results count of has_many association
Ruby on-Rails
Ruby on-Rails-3
Activerecord
400 Bad Request - request header or cookie too large
Ruby on-Rails
Nginx
Rails: Error installing rmagick - ERROR: Failed to build gem native extension
Ruby on-Rails
Mysql2::Error: Incorrect string value
Mysql
Ruby on-Rails
Ruby
Encoding
LoadError Unable to autoload constant Message
Ruby on-Rails
Activemodel
Rails Models
Mailboxer
CAS vs. SAML vs. OAuth2
Ruby on-Rails
Oauth 2.0
Single Sign-On
Saml
Cas
Docker Containers can not be stopped or removed - permission denied Error
Ruby on-Rails
Docker
Docker Compose
Docker Swarm
How do you find the namespace/module name programmatically in Ruby on Rails?
Ruby on-Rails
Ruby
Namespaces
Rails: Convert HTML to PDF?
Ruby on-Rails
Pdf
database configuration does not specify adapter
Ruby on-Rails
Ruby
MySQL not using indexes with WHERE IN clause?
Sql
Mysql
Ruby on-Rails
Database
Optimization
How can we watch the Rails development log?
Ruby on-Rails
Ruby
Windows
Logging
Git Bash
How do I make an image link tag using haml in Rails?
Ruby on-Rails
Haml
How to send raw post data in a Rails functional test?
Ruby on-Rails
Json
Testing
How do I order a has_many through association in Ruby on Rails?
Ruby on-Rails
Has Many-Through
Ruby on Rails 3 - Reload lib directory for each request
Ruby on-Rails
Reload
Rails Engines
Ruby on-Rails-3
accepts_nested_attributes_for with find_or_create?
Ruby on-Rails
Validation
Forms
Activerecord
RSpec documentation...where is it hiding?
Ruby on-Rails
Rspec
Rspec2
Heroku push rejected, failed to install gems via Bundler
Ruby on-Rails
Rubygems
Heroku
Ruby on-Rails-3
Bundler
How to test for (ActiveRecord) object equality
Ruby on-Rails
Ruby
Activerecord
Identity
Equality
Rails not reloading session on ajax post
Ruby on-Rails
Ajax
Jquery
Devise redirect after login fail
Ruby on-Rails
Redirect
Login
Devise
Clearing out ActionMailer::Base.deliveries after RSpec test
Ruby on-Rails
Unit Testing
Rspec
Actionmailer
Confusion about rake assets:clean / cleanup on the asset pipeline in rails
Ruby on-Rails
Ruby on-Rails-3
Asset Pipeline
Ruby on Rails plural (controller) and singular (model) convention - explanation
Ruby on-Rails
Ruby
Activerecord
What is the difference between using .exists?, and .present? in Ruby?
Ruby on-Rails
Ruby
How to organize minitest/unit tests?
Ruby on-Rails
Ruby
Minitest
Rails: How to set a background image in rails from css?
Css
Ruby on-Rails
Ruby on-Rails-3
Ruby on-Rails-3.2
Background Image
What's the difference between "validate" and "validates"?
Ruby on-Rails
Validation
Rails order by association field
Sql
Ruby on-Rails
Postgresql
How do I force ActiveRecord to reload a class?
Ruby on-Rails
Ruby
Activerecord
Migration
Javascript Include Tag Best Practice in a Rails Application
Javascript
Ruby on-Rails
Header
Rjs
Elegant way to structure models into subfolders without creating submodules
Ruby on-Rails
Activerecord
Forking a gem for a Rails project
Ruby on-Rails
Ruby
Fork
Gem
Including rake tasks in gems
Ruby on-Rails
Ruby
Rubygems
Rake
Skip before_filter in Rails
Ruby on-Rails
Inheritance
Before Filter
Rails Polymorphic Association with multiple associations on the same model
Ruby on-Rails
Polymorphic Associations
Rails rspec set subdomain
Ruby on-Rails
Rspec
Subdomain
Specifications
Is it right to assign multiple variables like this a = b = c = d = 5?
Ruby on-Rails
Ruby
RoR Devise: Sign in with username OR email
Ruby on-Rails
Authentication
Devise
How do I access the name of the Rails 3 application object?
Ruby on-Rails
Errors Installing mysql2 gem via the Bundler
Mysql
Ruby on-Rails
Ruby
Rubygems
Bundler
How do you test an AJAX request with RSpec/RoR?
Ruby on-Rails
Ajax
Testing
Rspec
mocha.js
How do I use RVM and create globally available gems?
Ruby on-Rails
Ruby
Macos
Rubygems
Rails bundler doesn't install gems inside a group
Ruby on-Rails
Ruby
Rubygems
Bundler
redirect_to != return
Ruby on-Rails
Upgrading from Rails 3 to Rails 3.1
Ruby on-Rails
Ruby
Ruby on-Rails-3
Ruby on-Rails-3.1
Rails, How to render a view/partial in a model
Ruby on-Rails
Ruby
Ruby on-Rails-3
Rails 3. How to get the difference between two arrays?
Ruby on-Rails
Ruby
Arrays
Speed up assets:precompile with Rails 3.1/3.2 Capistrano deployment
Ruby on-Rails
Ruby on-Rails-3.1
Capistrano
Asset Pipeline
Rails after_initialize only on "new"
Ruby on-Rails
Model
Nested Attributes
Ruby rails - select only few columns from the data base
Ruby on-Rails
Ruby
Ruby on-Rails-3
Rails Activerecord
Programmatically get the number of jobs in a Resque queue
Ruby on-Rails
Ruby
Redis
Resque
Can Wordpress be replaced by a Framework like Django or Ruby on Rails?
Ruby on-Rails
Django
Wordpress
Frameworks
Wordpress Theming
add associations to exisiting models
Ruby on-Rails
Migration
Associations
Ruby on rails 4 app does not work in iframe
Ruby on-Rails
Ruby on-Rails-3
Iframe
Ruby on-Rails-4
Default value for input with simple_form
Ruby on-Rails
Ruby on-Rails-4
Erb
Simple Form
How to uninstall all gems installed using `bundle install`
Ruby on-Rails
Bundler
Load a structure.sql into a rails database via rake
Ruby on-Rails
Schema
Guard with RSpec on Rails 4 giving a lot of warnings
Ruby on-Rails
Ruby
Ruby on-Rails-4
Rspec
How do you make remove_column reversible?
Ruby on-Rails
Rails Migrations
How to elegantly symbolize_keys for a 'nested' hash
Ruby on-Rails
Ruby
Hash
Dry
Error message: Make sure that `gem install pg -v '0.18.1'` succeeds before bundling
Ruby on-Rails
Ruby
Meaning of new block "git_source(:github)" in Gemfile
Ruby on-Rails
Bundler
Gemfile
What's this &block in Ruby? And how does it get passed in a method here?
Ruby on-Rails
Ruby
Google sitemap files for Rails projects
Ruby on-Rails
Sitemap
Google Search-Console
rails boolean fields: `is_foo` or just `foo`?
Ruby on-Rails
Convention
When to use node.js vs sinatra vs rails?
Javascript
Ruby on-Rails
Ruby
node.js
Rails 3 authentication solutions
Ruby on-Rails
Authentication
Plugins
Rubygems
Ruby on-Rails-3
Rails: How to get all parameters from url?
Ruby on-Rails
Ruby on-Rails-3
'-%>' (minus sign) at the end of a ERb sequence
Ruby on-Rails
Ruby
If I have a hash in Ruby on Rails, is there a way to make it indifferent access?
Ruby on-Rails
Ruby
Ruby on-Rails-3
How to make Rails 3.1 use SASS (Over SCSS) as the default?
Ruby on-Rails
Ruby
Sass
Ruby on-Rails-3.1
Block commenting in Gedit?
Ruby on-Rails
Ruby on-Rails-3
Gedit
Check for multiple items in array using .include? -- Ruby Beginner
Ruby on-Rails
Ruby
Rails 3 ActiveRecord: Order by count on association
Mysql
Ruby on-Rails
Ruby on-Rails-3
Activerecord
Clear the cache from the Rails asset pipeline
Javascript
Ruby on-Rails
Caching
Ruby on-Rails-3.1
Asset Pipeline
Rails naming convention for join table
Ruby on-Rails
Ruby on-Rails-3
Ruby on-Rails-3.1
Rails Migrations
In Rails when a resource create action fails and calls render :new, why must the URL change to the resource's index url?
Ruby on-Rails
Forms
View
Controller
Routes
Using angularjs with turbolinks
Ruby on-Rails
Angularjs
Turbolinks
ruby 2.0 rails gem install error "cannot load such file -- openssl"
Ruby on-Rails
Ruby
Rails migrations - change_column with type conversion
Ruby on-Rails
Ruby on-Rails-3
rails console doesn't start
Ruby on-Rails
Ruby on-Rails-4
Rails Console
rake db:create throws "database does not exist" error with postgresql
Ruby on-Rails
Postgresql
cache resources exhausted Imagemagick
Ruby on-Rails
Linux
Memory
Imagemagick
Minimagick
Rails 5.2.0 with Ruby 2.5.1 console - `warning:` `already` initialized constant FileUtils::VERSION
Ruby on-Rails
Ruby
Rvm
Rbenv
Fileutils
Radio buttons on Rails
Ruby on-Rails
Ruby
Webforms
Radio Button
God vs. Monit for process monitoring
Ruby on-Rails
Ruby
Monitoring
Monit
God
Defining foreign key relationships for Rails' models
Ruby on-Rails
Foreign Keys
How to get client IP and Server IP using Rails
Ruby on-Rails
Ip
How to handle Ruby on Rails error: "Please install the postgresql adapter: `gem install activerecord-postgresql-adapter'"
Ruby on-Rails
Ruby
Postgresql
Activerecord
Rubygems
Ruby on rails - Reference the same model twice?
Ruby on-Rails
Rails Activerecord
Relationship
Ruby-on-Rails: Multiple has_many :through possible?
Ruby on-Rails
Associations
Has Many-Through
How do you scope ActiveRecord associations in Rails 3?
Ruby on-Rails
Activerecord
Ruby on-Rails-3
Named Scope
Arel
Rails has_many with dynamic conditions
Ruby on-Rails
Model
Rails: Internationalization of Javascript Strings?
Javascript
Ruby on-Rails
Internationalization
Ruby on Rails: How do you explicitly define plural names and singular names in Rails?
Ruby on-Rails
Ruby
How to mixin and call link_to from controller in Rails?
Ruby on-Rails
Helpers
Actionview
Link To
Mixins
accepts_nested_attributes_for with belongs_to polymorphic
Ruby on-Rails
Ruby
Polymorphic Associations
Nested Attributes
Order a collection as DESC
Ruby on-Rails
Ruby
STI, one controller
Ruby on-Rails
Ruby
Ruby on-Rails-3
after_commit for an attribute
Ruby on-Rails
Ruby
Is it possible to configure Paperclip to produce HTTPS urls for S3?
Ruby on-Rails
Ruby on-Rails-3
Amazon S3
Paperclip
rails, simple_form, how to set selected index of a collection when page loaded?
Ruby on-Rails
Ruby on-Rails-3
Simple Form
Using Rspec, how do I test the JSON format of my controller in Rails 3.0.11?
Ruby on-Rails
Json
Api
Header
Rspec
How to access default Rails sqlite db?
Ruby on-Rails
Ruby on-Rails-3
Sqlite
Aptana
Rails: Using Font Awesome
Ruby on-Rails
Fonts
Font Awesome
Render partial :collection => @array specify variable name
Ruby on-Rails
Reserved names with ActiveRecord models
Ruby on-Rails
Ruby on-Rails-3
Activerecord
Ruby on-Rails-3.2
Active Record-Query
How do I reset my sidekiq counters?
Ruby on-Rails
Ruby
Sidekiq
"bin/rails: No such file or directory" w/ Ruby 2 & Rails 4 on Heroku
Ruby on-Rails
Ruby
Heroku
Ruby on-Rails-4
Ruby 2.0
Rails 4 Unpermitted Parameters for Array
Ruby on-Rails
Ruby
Ruby on-Rails-4
Strong Parameters
Best way to handle data attributes in Slim
Ruby on-Rails
Ruby
Haml
Templating
Slim Lang
Warning with fog and AWS: unable to load the 'unf' gem
Ruby on-Rails
Ruby
Amazon Web-Services
Fog
confusing about autoload_paths vs eager_load_paths in rails 4
Ruby on-Rails
How to run sidekiq in production server?
Ruby on-Rails
Sidekiq
535-5.7.8 Username and Password not accepted
Ruby on-Rails
fetch patch request is not allowed
Javascript
Php
Ruby on-Rails
Fetch Api
Can't Install ffi -v '1.9.18' on macos Catalina
Ruby on-Rails
Ruby
Rails POST, PUT, GET
Ruby on-Rails
Ruby
Web Services
Http
How to encode media in base64 given URL in Ruby
Ruby on-Rails
Ruby
Base64
Encode
Activesupport
Convert a Ruby on Rails app from sqlite to MySQL?
Ruby on-Rails
Rails link to current page and passing parameters to it
Ruby on-Rails
Internationalization
ruby super keyword
Ruby on-Rails
Ruby
Activerecord
Capistrano asks for password when deploying, despite SSH keys
Ruby on-Rails
Ruby
Sinatra
Capistrano
Ssh Keys
Turn omniauth facebook login into a popup
Ruby on-Rails
Facebook
Omniauth
Injecting variable values into javascript and HAML in RoR
Javascript
Ruby on-Rails
Haml
jquery doesn't call success method on $.ajax for rails standard REST DELETE answer
Jquery
Ruby on-Rails
Rest
How do I URL-escape a string in Rails?
Ruby on-Rails
Url
Escaping
How do I test Rails migrations?
Ruby on-Rails
Database
Testing
Outputting errors in a rescue (Ruby/Rails)
Ruby on-Rails
Ruby
Exception
Managing conflict in schema.rb created by Git operation
Ruby on-Rails
Git
Migration
How to use seed.rb to selectively populate development and/or production databases?
Ruby on-Rails
Ruby on-Rails-3
Environment
What flash message types are available in Rails?
Ruby on-Rails
Rails optional argument
Ruby on-Rails
Ruby
Passing parameters through OmniAuth
Ruby on-Rails
Omniauth
Can't find libcurl or curl/curl.h (RuntimeError)
Ruby on-Rails
Ruby
Curl
Gem
Curb
How I can check if an object is null in ruby on rails 2?
Ruby on-Rails
Ruby
Ruby on-Rails-2
What is the order of ActiveRecord callbacks and validations?
Ruby on-Rails
Ruby on-Rails-3
Validation
Activerecord
heroku open - no app specified
Ruby on-Rails
Heroku
Rails javascript only works after reload
Javascript
Ruby on-Rails
Ruby on-Rails-3
Asset Pipeline
Rails Console find users by array of ids
Mysql
Ruby on-Rails
Ruby
Postgresql
Rails Console
How to Create a New Table With a Unique Index in an Active Record / Rails 4 Migration
Ruby on-Rails
Activerecord
Ruby on-Rails-4
Implementation of "Remember me" in a Rails application
Ruby on-Rails
Ruby
Http
JavaScript file per view in Rails
Javascript
Ruby on-Rails
Ruby
Ruby on Rails: errors.add_to_base vs. errors.add
Ruby on-Rails
Ruby
Validation
Model
Hidden Features of Ruby on Rails
Ruby on-Rails
How to edit a Rails serialized field in a form?
Ruby on-Rails
Forms
Serialization
Is there a way in Ruby/Rails to execute code that is in a string?
Ruby on-Rails
Ruby
Scripting
How to use ActiveRecord in a ruby script outside Rails?
Ruby on-Rails
Ruby
Activerecord
Scripting
ActiveRecord serialize using JSON instead of YAML
Ruby on-Rails
Json
Activerecord
Yaml
Serialization
Is there something similar to 'rake routes' in django?
Python
Ruby on-Rails
Django
Routing
Django Urls
Magic First and Last Indicator in a Loop in Ruby/Rails?
Ruby on-Rails
Ruby
Syntactic Sugar
Recognize routes in rails console Session
Ruby on-Rails
Routes
Rails ActiveSupport: How to assert that an error is raised?
Ruby on-Rails
Assert
Activesupport
Raise
Rails 3 - no such file to load -- openssl
Ruby on-Rails
Ruby
Ruby on-Rails-3
Openssl
Rvm
Ruby on Rails: alias_method_chain, what exactly does it do?
Ruby on-Rails
Ruby
How to spec a private method
Ruby on-Rails
Rspec
Create seed file from data already in the database
Ruby on-Rails
Activerecord
Ruby on-Rails-3
Rake
Rails 3 respond_to: default format?
Ruby on-Rails
Ruby on-Rails-3
Ruby on Rails: How do you get the previous URL?
Ruby on-Rails
Ruby on Rails -- multiple selection in f.select
Ruby on-Rails
rake db:migrate doesn't seem to work in production
Ruby on-Rails
Ruby on-Rails-3
What does #self.included(base) do in Ruby on Rails' Restful Authentication?
Ruby on-Rails
Restful Authentication
Validate Before Destroy
Ruby on-Rails
Validation
How to create a deep copy of an object in Ruby?
Ruby on-Rails
Ruby
Object
Copy
Deep Copy
How to submit multiple NEW items via Rails 3.2 mass-assignment
Ruby on-Rails
Ruby on-Rails-3
Can FactoryBot generate factories after your models have been created?
Ruby on-Rails
Ruby
Factory Bot
rails generate model
Ruby on-Rails
Ruby on-Rails-3.2
What does <%== %> do in rails erb?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Erb
How to Destroy multiple objects simultaneously in Rails 3
Ruby on-Rails
Ruby on-Rails-3
Strong parameters with Rails and Devise
Ruby on-Rails
Devise
Strong Parameters
Sidekiq jobs stuck in enqueue
Ruby on-Rails
Ruby on-Rails-3
Redis
Ubuntu 10.04
Sidekiq
ActiveRecord::SubclassNotFound: The single-table inheritance mechanism failed to locate the subclass
Ruby on-Rails
Inheritance
Rails Activerecord
Where is the default "Welcome Aboard" page located in my app?
Ruby on-Rails
Ruby on-Rails-4
What is the difference between Rails.cache.clear and rake tmp:cache:clear?
Ruby on-Rails
Ruby on-Rails-3
Ruby on-Rails-3.2
Rake
TypeError: no implicit conversion of Symbol into Integer
Ruby on-Rails
Ruby
Why is it best to store a telephone number as a string vs. integer?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Postgresql
Ruby on-Rails-4
RSpec any_instance deprecation: how to fix it?
Ruby on-Rails
Ruby
Testing
Rspec
Passing headers and query params in HTTparty
Ruby on-Rails
Ruby
Http Headers
Httparty
PG::UndefinedTable: ERROR: missing FROM-clause entry for table when using joins and where
Ruby on-Rails
Ruby on-Rails-4
Psql
Sass::SyntaxError: File to import not found or unreadable: bootstrap-sprockets
Ruby on-Rails
Twitter Bootstrap
Add nullable foreign key in Rails
Ruby on-Rails
Ruby
Ruby on-Rails-4
Rails Activerecord
Ruby on-Rails-4.2
Error installing nokogiri: Failed to build gem native extension & libiconv is missing (OSX)
Ruby on-Rails
Ruby
Nokogiri
Homebrew
Osx Yosemite
Rails - The system cannot find the path specified
Ruby on-Rails
Ruby
Windows
What is the difference between signed and encrypted cookies in Rails?
Ruby on-Rails
Cookies
Session Cookies
Webpacker configuration file not found - Rails 6.0.0
Ruby on-Rails
Overriding a module method from a gem in Rails
Ruby on-Rails
Ruby
Gem
Will Paginate
How to bypass SSL certificate verification in open-uri?
Ruby on-Rails
How to create a new environment in Ruby on Rails?
Ruby on-Rails
Execute a Rake task from within migration?
Ruby on-Rails
Ruby
Migration
Why does false invalidate validates_presence_of?
Ruby on-Rails
Unit Testing
Validation
How to count lines of code?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Rails & Devise: How to render login page without a layout?
Ruby on-Rails
Devise
Double colons before class names in Ruby?
Ruby on-Rails
Ruby
How do I extract Rails view helpers into a gem?
Ruby on-Rails
Ruby on-Rails-3
Rubygems
Gem
Actionview
How to use ActiveAdmin on models using has_many through association?
Ruby on-Rails
Ruby on-Rails-3
Rubygems
Associations
Activeadmin
Rails: Force empty string to NULL in the database
Mysql
Ruby on-Rails
Activerecord
Ruby on-Rails-3.1
How to filter parameters in rails?
Ruby on-Rails
Ruby
Filtering
How do i get rid of @controller is nil error in my tests
Ruby on-Rails
Ruby on-Rails-3
How to specify conditions on joined tables in rails
Sql
Ruby on-Rails
Activerecord
"Uninitialized constant" error when including a module
Ruby on-Rails
Ruby
Ruby on-Rails-3.1
Truncate table(s) with rails console
Ruby on-Rails
Ruby on-Rails-3
Truncate
Rails Console
Github contributions graph
Javascript
Ruby on-Rails
Github
Svg
Rails active record querying association with 'exists'
Ruby on-Rails
How are Rails instance variables passed to views?
Ruby on-Rails
Create .ruby-version and .ruby-gemset with rvm
Ruby on-Rails
Ruby
Rvm
Gemset
Rails Migration: How to increase column data type size by using ROR migration
Ruby on-Rails
Ruby
Migration
Undefined instance method "respond_to" in Rails 5 API Controller
Ruby on-Rails
Ruby
Rest
Ruby on-Rails-5
Validation failed Class must exist
Ruby on-Rails
Validation
Associations
Model Associations
Belongs To
Rails: uniq vs. distinct
Ruby on-Rails
Activerecord
in rails, how to return records as a csv file
Ruby on-Rails
Csv
When I run the rake:db migrate command I get an error "Uninitialized constant CreateArticles"
Ruby on-Rails
Rake
Rails Migrations
What is the proper "Rails Way" to consume a RESTful web service on another domain?
Ruby on-Rails
Rest
How do you validate uniqueness of a pair of ids in Ruby on Rails?
Ruby on-Rails
Validation
Model
Unique Constraint
Difference between -%> and %> in rails
Ruby on-Rails
rails override default getter for a relationship (belongs_to)
Ruby on-Rails
Activerecord
Associations
Default Value
How to do case-insensitive order in Rails with postgresql
Ruby on-Rails
Ruby
Postgresql
Sql Order-By
Case Insensitive
how do I get name of the month in ruby on Rails?
Ruby on-Rails
Ruby
How to set-up jquery-ui autocomplete in Rails
Ruby on-Rails
Jquery Ui
Autocomplete
Jquery Ui-Autocomplete
How to remove a column from my Rails model?
Ruby on-Rails
Ruby on-Rails-3
How can I uninstall Ruby on ubuntu?
Ruby on-Rails
Ruby
Ubuntu
Uninstallation
How to use all view and helper methods inside of Rails console for Rails 2.x and 3.x?
Ruby on-Rails
Ruby on-Rails-3
How to change a Ruby on Rails application name?
Ruby on-Rails
Ruby on-Rails-3
link_to :confirm displays popup twice
Ruby on-Rails
Rails 3: OpenSSL::SSL::SSLError: hostname was not match with the server certificate
Ruby on-Rails
Ruby on-Rails-3
Openssl
Ssl Certificate
How to manually create a new user and user session in Devise?
Ruby on-Rails
Ruby on-Rails-3
Authlogic
Devise
Rails: How do I print the request parameters?
Ruby on-Rails
Displaying a Carrierwave filename in the view
Ruby on-Rails
Ruby on-Rails-3
Carrierwave
Check select box has certain options with Capybara
Ruby on-Rails
Selenium
Cucumber
Capybara
How to make carrierwave delete the file when destroying a record?
Ruby on-Rails
Ruby
Carrierwave
ActiveModel::MissingAttributeError occurs after deploying and then goes away after a while
Ruby on-Rails
Ruby
Activemodel
How to update all when you need callbacks fired?
Ruby on-Rails
Ruby on-Rails-3
Activerecord
Callback
Update All
Will removing a column with a Rails migration remove indexes associated with the column
Ruby on-Rails
Rails Migrations
How to avoid precompiled assets being served in development mode?
Ruby on-Rails
Ruby on-Rails-3.1
Asset Pipeline
Ruby/Rails - Get the last two values in an array
Ruby on-Rails
Ruby
Rails 3: Multiple Select with has_many through associations
Ruby on-Rails
Ruby on-Rails-3
Model.reset_column_information does not reload columns in rails migration
Ruby on-Rails
Activerecord
Migration
Rake
Ruby on-Rails-3.2
How do I simulate a login with RSpec?
Ruby on-Rails
Rspec
Factory Bot
Gem file with git remote failing on heroku push
Ruby on-Rails
Ruby
Git
Heroku
Bundler
What does the j function in Rails do?
Javascript
Ruby on-Rails
Ajax
Partial Views
remove a blank option of select field that was generated by SimpleForm
Ruby on-Rails
Rake db:migrate - how do I undo all migrations and redo them
Ruby on-Rails
Ruby on-Rails-3
Migration
Reset
Rollback
Rails4: How to permit a hash with dynamic keys in params?
Ruby on-Rails
Strong Parameters
How to convert array of ActiveRecord models to CSV?
Ruby on-Rails
Ruby
Csv
Authenticate user using omniauth and Facebook for a rails API?
Ruby on-Rails
Facebook
Authentication
Omniauth
Capistrano and environment variables
Ruby on-Rails
Environment Variables
Capistrano
Capistrano3
Rails belongs_to with custom column name
Ruby on-Rails
Irregular bootstrap column wrapping
Html
Css
Ruby on-Rails
Ruby
Twitter Bootstrap
Gem::LoadError: can't activate pg (~> 0.18), already activated pg-1.0.0
Ruby on-Rails
Ruby
Postgresql
Bundler
Rails Migrations
Create an ActiveRecord database table with no :id column?
Mysql
Ruby on-Rails
Ruby
Security
Activerecord
dependent => destroy on a "has_many through" association
Ruby on-Rails
Activerecord
Has Many-Through
Where to put partials shared by the whole application in Rails?
Ruby on-Rails
Dry
Partials
How do I get ActiveRecord to show the next id (last + 1) in Ruby on Rails?
Ruby on-Rails
Activerecord
rails convert string to number
Ruby on-Rails
Ruby
How to use bundler behind a proxy?
Ruby on-Rails
Ruby
Proxy
Rubygems
Bundler
Rails belongs_to many models
Ruby on-Rails
Activerecord
Belongs To
Quickest way to find out heroku database size
Ruby on-Rails
Postgresql
Heroku
Sending mail with Rails 3 in development environment
Ruby on-Rails
Ruby on-Rails-3
Actionmailer
How to Configure Capistrano to Deploy from Local Git Repository?
Ruby on-Rails
Git
Capistrano
Rails JSON Serialization of Decimal adds Quotes
Ruby on-Rails
Facebook how to check if user has liked page and show content?
Javascript
Jquery
Ruby on-Rails
Ruby on-Rails-3
Facebook
Devise limit one session per user at a time
Ruby on-Rails
Ruby on-Rails-3
Session
Devise
How to set default Ruby version with RVM?
Ruby on-Rails
Ruby
Rvm
Ruby 1.9.2
How can I import a SQL file into a Rails database?
Sql
Ruby on-Rails
foreman only shows line with “started with pid #” and nothing else
Ruby on-Rails
Ruby
Heroku
Rubygems
Foreman
Rails: Could not find railties
Ruby on-Rails
Rubygems
Rails - Validate on Create Only
Ruby on-Rails
Rails: "BCrypt::Errors::InvalidHash" when trying to sign in
Ruby on-Rails
Heroku
Bcrypt
Raise custom Exception with arguments
Ruby on-Rails
Ruby
Exception
Exception Handling
CSS loading locally but not in Heroku for a rails app
Css
Ruby on-Rails
Heroku
Twitter Bootstrap
git push heroku master permission denied
Ruby on-Rails
Git
Heroku
Twitter bootstrap modal input field focus
Javascript
Jquery
Ruby on-Rails
Twitter Bootstrap
How to check rails environment?
Ruby on-Rails
Ubuntu
Production
Include associated model when rendering JSON in Rails
Ruby on-Rails
Json
Why does my rails rollback when I try to user.save?
Ruby on-Rails
Ruby
railstutorial.org
Capistrano SSH::AuthenticationFailed, not prompting for password
Ruby on-Rails
Ruby
Deployment
Capistrano
Rails 4 find or create by method doesn't work
Ruby on-Rails
Ruby on-Rails-4
Associations
Capistrano deployment problems
Ruby on-Rails
Deployment
Capistrano
Check whether a string contains one of multiple substrings
Ruby on-Rails
Ruby
String
Ruby 2.1
(JSON::ParserError) "{N}: unexpected token at 'alihack<%eval request(\"alihack.com\")%>
Ruby on-Rails
Ruby
Json
Ruby on-Rails-3
migrations: t.references doesn't allow index name to be specified
Ruby on-Rails
Ruby
Rails Unable to convert unpermitted parameters to hash
Ruby on-Rails
Ruby
Sorting
Parameters
Search Form
Single table inheritance and where to use it in Rails
Ruby on-Rails
Inheritance
Is the Lift framework as "easy" as Ruby on Rails or Django?
Ruby on-Rails
Django
Scala
Lift
Multiple objects in a Rails form
Ruby on-Rails
Forms
Post
Submit POST data from controller to another website in Rails
Ruby on-Rails
Ruby
Forms
Request
Form Submit
Using Rails Migration on different database than standard "production" or "development"
Ruby on-Rails
Ruby
Database
Migration
Rails: named_scope, lambda and blocks
Ruby on-Rails
Ruby
Lambda
What's the difference between Ruby and JRuby?
Ruby on-Rails
Ruby
Jruby
Why do I get an "undefined method for `has_attached_file` when installing PaperClip?
Ruby on-Rails
Ruby
Paperclip
usage of attr_accessor in Rails
Ruby on-Rails
Ruby
Ruby on Rails app on Google App Engine
Ruby on-Rails
Ruby
Google App-Engine
Ruby Datamapper
Rails 3 -- Bundler/Capistrano Errors
Ruby on-Rails
Ruby on-Rails-3
Capistrano
Bundler
Don't escape html in ruby on rails
Ruby on-Rails
Ruby on-Rails-3
How do :default => 0 and :null => false differ for integer fields in migrations?
Ruby on-Rails
Null
Migration
Default
Ruby on Rails: the best way to compare two dates?
Ruby on-Rails
Date
What is the best/easy way to validate an email address in Ruby?
Ruby on-Rails
Ruby
Ruby on-Rails-3
How can I send mail with rails without a template?
Ruby on-Rails
Ruby
Email
Actionmailer
Access helpers from mailer?
Ruby on-Rails
Ruby on-Rails-3
Shared models between two Rails apps - what is the ideal solution for Workflow?
Ruby on-Rails
Backend
Rails Models
Rails: Get next / previous record
Sql
Ruby on-Rails
Ruby on-Rails-3
How can I reload the current page in Ruby on Rails?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Url Routing
How to define action with simple form for?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Simple Form
Visit method not found in my rspec
Ruby on-Rails
Rspec
Jruby
Bootstrap: 'TypeError undefined is not a function'/'has no method 'tab'' when using bootstrap-tabs
Javascript
Jquery
Ruby on-Rails
Twitter Bootstrap
How to emulate mouse hover with Capybara
Ruby on-Rails
Rspec
Capybara
How to tell which format a controller has resolved to render
Ruby on-Rails
Ruby on-Rails-3
Controller
Respond To
Setting Environment Variables in Rails 3 (Devise + Omniauth)
Ruby on-Rails
Ruby on-Rails-3
Environment Variables
Omniauth
Railscasts
Is it impossible to use Guard with RubyMine?
Ruby on-Rails
Rspec
Tdd
Rubymine
Guard
Rails: Starting Sidekiq on Heroku
Ruby on-Rails
Heroku
Sidekiq
after_create :foo vs after_commit :bar, :on => :create
Ruby on-Rails
How can I use unicorn as "rails s"?
Ruby on-Rails
Ruby
Unicorn
How to get the selected date value while using Bootstrap Datepicker?
Jquery
Ruby on-Rails
Jquery Ui
Twitter Bootstrap
Datepicker
What is the best way to convert all controller params from camelCase to snake_case in Rails?
Ruby on-Rails
Json
Unpermitted Parameters adding new fields to Devise in rails 4.0
Ruby on-Rails
Ruby
What is rake and how it is used in rails?
Ruby on-Rails
Rake
PG::ConnectionBad: fe_sendauth: no password supplied
Ruby on-Rails
Postgresql
Authentication
Running a spec in RubyMine results in "cannot load such file -- teamcity/spec/runner/formatter/teamcity/formatter (LoadError)"
Ruby on-Rails
Ruby
Ruby on-Rails-4
Rspec
Rubymine
Get specific attributes from an ActiveRecord model
Ruby on-Rails
Select
Filter
Authorization
What is :cascade in rails schema.rb and where did it come from?
Ruby on-Rails
Rails: difference between ENV.fetch() and ENV[]
Ruby on-Rails
Ruby
Ruby on-Rails-5
Is there a CRUD generator utility in Java(any framework) like Scaffolding in Rails?
Java
Ruby on-Rails
Crud
Scaffolding
Rails: How to test code in the lib/ directory?
Ruby on-Rails
Unit Testing
How do I find the source file for a rake task?
Ruby on-Rails
Ruby
Rake
How to create a delete link for a related object in Ruby on Rails?
Ruby on-Rails
Ruby
Hyperlink
How do I use helpers in rake?
Ruby on-Rails
Ruby
Rake
Helper
Multiple databases in Rails
Ruby on-Rails
Database
Activerecord
How to use Rails 3's ActiveSupport core extensions outside Rails
Ruby on-Rails
Rubygems
Activesupport
Rails Object Relationships and JSON Rendering
Ruby on-Rails
Ruby
Json
Activerecord
Ruby: How to group a Ruby array?
Ruby on-Rails
Ruby
How do I make an RSS/Atom feed in Rails 3?
Ruby on-Rails
Rss
Ruby on-Rails-3
Rails Browser Detection Methods
Ruby on-Rails
Ruby
User Agent
Browser Detection
How to sign in a user using Devise from a Rails console?
Ruby on-Rails
Console
Devise
How to encode periods for URLs in Javascript?
Javascript
Html
Ruby on-Rails
Encoding
rails 3, how add a view that does not use same layout as rest of app?
Ruby on-Rails
Layout
Encrypt, decrypt using Rails
Ruby on-Rails
Encryption
In Rails, how to get current url (but no paths)
Ruby on-Rails
Ruby
Ruby on-Rails-3
Rails 3 and Rich text editor
Javascript
Ruby on-Rails
Rich Text-Editor
With RSpec, how to seed the database on load?
Ruby on-Rails
Ruby on-Rails-3
Rspec
Rails where() clause on model association?
Ruby on-Rails
before_filter not cancelling action
Ruby on-Rails
Before Filter
Rails with ruby-debugger throw 'Symbol not found: _ruby_current_thread (LoadError)'
Ruby on-Rails
Ruby
Ruby Debug
Rails - How do I check developer mode or production mode in code
Ruby on-Rails
Ruby
Ruby on-Rails-3
Cucumber / Capybara -- how to get the host and port of the current execution
Ruby on-Rails
Selenium
Cucumber
Capybara
Rake aborted! no such file to load --bundler/setup Rails 3.1
Ruby on-Rails
Rails cron whenever, bundle: command not found
Ruby on-Rails
Cron
Whenever
Rails which files to ignore for GIT
Ruby on-Rails
Git
how to undo bundle update
Ruby on-Rails
Rvm
Bundler
Why couldn't twitter scale by adding servers the way sites like facebook have?
Ruby on-Rails
Ruby
Scala
Twitter
How do you structure i18n yaml files in Rails?
Ruby on-Rails
Ruby on-Rails-3
Internationalization
Structure
Yaml
Set Rspec default GET request format to JSON
Ruby on-Rails
Rspec
Functional Testing
What's the difference between “includes” and “preload” in an ActiveRecord query?
Ruby on-Rails
Ruby
Activerecord
Bundle Install could not fetch specs from https://rubygems.org/
Ruby on-Rails
Ruby
Gem
Bundler
railstutorial.org
What's the difference between tests and specs?
Ruby on-Rails
Unit Testing
Automated Tests
When do I need to restart server in Rails?
Ruby on-Rails
Ruby
If else statements in .html.erb in views
Ruby on-Rails
Ruby
Model View-Controller
Rails checking if a record exists in database
Ruby on-Rails
Database
Null
Rails 4 + Devise: Password Reset is always giving a "Token is invalid" error on the production server, but works fine locally.
Ruby on-Rails
Devise
Ruby on-Rails-4
how to delete a job in sidekiq
Ruby on-Rails
Sidekiq
Possible to alias a belongs_to association in Rails?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Ruby on-Rails-3.2
Ruby on-Rails-4
Ruby on Rails "invalid byte sequence in UTF-8" due to bot
Ruby on-Rails
Ruby
Ruby on-Rails-3
Utf 8
Ruby 1.9.3
Rails: NameError: uninitialized constant
Ruby on-Rails
Ruby on-Rails-4
Rails Console
Rails validates_presense not validating on boolean?
Ruby on-Rails
Ruby on-Rails-4
Boolean
Rails server is still running in a new opened docker container
Ruby on-Rails
Docker
Dockerfile
Docker Compose
Why is my RSpec not loading Devise::Test::ControllerHelpers?
Ruby on-Rails
Devise
Rspec Rails
Warden
What is the difference between `try` and `&.` (safe navigation operator) in Ruby
Ruby on-Rails
Ruby
If Statement
Nomethoderror
Grape Api
Best Role-Based Access Control (RBAC) database model
Ruby on-Rails
Permissions
Roles
Access Control
Rbac
Rails Model has_many with multiple foreign_keys
Ruby on-Rails
Ruby
Model
Has Many
Rails: I can't call a function in a module in /lib - what am I doing wrong?
Ruby on-Rails
Ruby
ActiveRecord - querying polymorphic associations
Ruby on-Rails
Ruby
Activerecord
Polymorphic Associations
What is the preferred way to manage schema.rb in git?
Ruby on-Rails
Git
Workflow
schema.rb
Rails model validation on create and update only
Ruby on-Rails
Validation
Model
Cascade delete in Ruby ActiveRecord models?
Ruby on-Rails
Rails Activerecord
Database Relations
Rails - How do you test ActionMailer sent a specific email in tests
Ruby on-Rails
Unit Testing
Actionmailer
Possible to create this redirecting route in Rails?
Ruby on-Rails
Redirect
Routes
how to read a User uploaded file, without saving it to the database
Ruby on-Rails
Xml
Ruby
Creating a rails route to an external URL
Ruby on-Rails
Routing
Difficulties installing mysql gem on Ubuntu
Mysql
Ruby on-Rails
Rubygems
Ubuntu 10.04
In Ruby what does "=>" mean and how does it work?
Ruby on-Rails
Ruby
Operators
Symbols
Hashrocket
How to remove gem from Ruby on Rails application?
Ruby on-Rails
Ruby
Rubygems
For Rails, how to access or print out config variables (as experiment or test / debugging)
Ruby on-Rails
Ruby on-Rails-3
Controlling the order of rails validations
Ruby on-Rails
Ruby on-Rails-3
Validation
Activemodel
Rails ActiveRecord: How do I know if find_or_create_by found or created?
Ruby on-Rails
Activerecord
How to access instance variables in CoffeeScript engine inside a Slim template
Ruby on-Rails
Ruby on-Rails-3
Coffeescript
Haml
Slim Lang
The opposite of assert_select?
Ruby on-Rails
Functional Testing
ide sublime2 how to find method definition
Ruby on-Rails
Ruby
Sublimetext
Run Rails commands outside of console
Ruby on-Rails
Ruby
Ruby on-Rails-3
Console
Difference between resource and resources in rails routing?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Routes
How to disable Rack-Mini-Profiler temporarily?
Ruby on-Rails
Ruby on-Rails-3
Rack Mini-Profiler
What is the use of Gemfile in rails?
Ruby on-Rails
Ruby
Gemfile
What is the best way to resolve Rails orphaned migrations?
Ruby on-Rails
Ruby on-Rails-3
Git
Migration
Rails Migrations
Logging in Ruby on Rails in Production Mode
Ruby on-Rails
Logging
Production
rails validation: :allow_nil and :inclusion both needed at the same time
Ruby on-Rails
Ruby
Validation
Inclusion
Schema Migrations Table
Ruby on-Rails
Ruby on-Rails-4
Database Migration
Rails: respond_to JSON and HTML
Ruby on-Rails
Ruby
Ruby on-Rails-4
Respond To
Rails 4, how to correctly configure smtp settings (gmail)
Ruby on-Rails
Email
Ruby on-Rails-4
Smtp
How to load vendor asset folder in Rails 4?
Ruby on-Rails
Plugins
Ruby on-Rails-Plugins
ERROR: delete on table violates foreign key constraint. Key id is still referenced from table (many)
Ruby on-Rails
Postgresql
Sublimetext2
Better Errors-Gem
Conditional attributes in Active Model Serializers
Ruby on-Rails
Active Model-Serializers
How to debug a rails app in docker with pry?
Ruby on-Rails
Docker
Pry
How Do You Secure database.yml?
Ruby on-Rails
Security
Deployment
What is the best web server for Ruby on Rails application?
Ruby on-Rails
Webserver
Creating Microsoft Word (.docx) documents in Ruby
Ruby on-Rails
Ruby
Ms Word
Documents
Capistrano & Bash: ignore command exit status
Ruby on-Rails
Ruby
Bash
Capistrano
How do I PUT data to Rails using JQuery
Jquery
Ruby on-Rails
Ajax
Json
How to make a Ruby string safe for a filesystem?
Ruby on-Rails
Ruby
String
Filesystems
Rails: How do I write tests for a ruby module?
Ruby on-Rails
Ruby
Unit Testing
Testing
Module
url encode equivalent in ruby on rails
Php
Ruby on-Rails
Ruby
Ruby on Rails 3 howto make 'OR' condition
Ruby on-Rails
Ruby
Ruby on-Rails-3
Access CanCan's `can?` method from a model
Ruby on-Rails
Cancan
In a rails migration, how can you remove the limit of a field
Ruby on-Rails
Ruby
Rails Migrations
How to do find() with includes() in Rails 3
Ruby on-Rails
Ruby on-Rails-3
How do I prevent deletion of parent if it has child records?
Ruby on-Rails
Model
Associations
get list of state_machine states
Ruby on-Rails
State Machine
Ruby/Rails: How do you customize the mailer templates of Devise?
Ruby on-Rails
Devise
Detect MIME type of uploaded file in Ruby
Ruby on-Rails
Ruby
File Upload
Swfupload
View helper link_to in Model class
Ruby on-Rails
Ruby on-Rails-3
Setting session length with Devise
Ruby on-Rails
Devise
can you use activerecord to find substring of a field? (quick & dirty keyword finder)
Ruby on-Rails
Activerecord
What is '$:.unshift File.dirname(__FILE__)' doing?
Ruby on-Rails
Ruby
Empty attribute with Ruby HAML
Ruby on-Rails
Ruby
Haml
Could not find rails (>= 0) amongst [] (Gem::LoadError)
Ruby on-Rails
Ruby
Ruby on-Rails-3
Rubygems
Rvm
therubyracer gem on windows
Ruby on-Rails
Rubygems
Bundler
Devkit
How do I use reference images in Sass when using Rails 3.1?
Ruby on-Rails
Css
Ruby on-Rails-3
Sass
Sprockets
Rails: has_many through with polymorphic association - will this work?
Ruby on-Rails
Activerecord
Has Many-Through
Polymorphic Associations
Ruby: SQLite3::BusyException: database is locked:
Ruby on-Rails
Sqlite
Rails - How to add CSRF Protection to forms created in javascript?
Javascript
Ruby on-Rails
Ruby on-Rails-3
backbone.js
Csrf
How to unzip a file in Ruby on Rails?
Ruby on-Rails
Ruby
File
Zip
Rails: Find all with conditions
Ruby on-Rails
Why does rails require JavaScript Runtime?
Ruby on-Rails
Ruby on-Rails-3
How to test rendering a partial with RSpec
Ruby on-Rails
Ruby
Ruby on-Rails-3
Rspec
Simple respond_with in rails that avoids 204 from PUT
Ruby on-Rails
Set logging levels in Ruby on Rails
Ruby on-Rails
Ruby on-Rails-3
Logging
Minitest and Rspec
Ruby on-Rails
Ruby
Testing
Rspec
Minitest
Rails - Delete all Records that Meet a Condition
Sql
Ruby on-Rails
Activerecord
cannot load such file -- openssl (LoadError)
Ruby on-Rails
Rvm
ruby on rails how to deal with NaN
Ruby on-Rails
Ruby
Ruby on-Rails-3
Ruby on-Rails-3.2
Ruby on-Rails-3.1
How to add glyphicons to rails link_to helper - Bootstrap 3
Ruby on-Rails
Twitter Bootstrap
Glyphicons
Rails 4: disable Turbolinks in a specific page
Javascript
Ruby on-Rails
Ruby
Turbolinks
undefined method 'devise' for User
Ruby on-Rails
Ruby
Devise
pluralize without count number in rails 4
Ruby on-Rails
Ruby on-Rails-4
Activerecord
Pluralize
Rails: correct way of turning activerecord relation to array?
Ruby on-Rails
Ruby
Activerecord
How to restart puma after deploy?
Ruby on-Rails
Deployment
Capistrano3
Puma
Rails: How to use dependent: :destroy in rails?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Ruby on-Rails-4
Ruby on-Rails-3.2
Sidekiq Rails 4.2 Use Active Job or Worker? What's the difference
Ruby on-Rails
Asynchronous
Sidekiq
Whenever
Rails Activejob
Error in slick.js: "Uncaught TypeError: Cannot read property 'add' of null"
Jquery
Ruby on-Rails
Slider
Nested Forms
slick.js