Top "Ruby-on-rails-4" questions

For issues specific to version 4 of Rails.

ERROR: Failed to build gem native extension on Mavericks

I'm attempting to run bundle in my Rails project on OSX 10.9. It fails when getting to the pg gem with …

ruby-on-rails ruby ruby-on-rails-4 pg osx-mavericks
Does Rails 4 have support for OR queries

So in Rails 4 the long desired feature to use not queries has been added. Article.where.not(title: 'Rails 3') …

ruby-on-rails ruby-on-rails-4
Redis: NOAUTH Authentication required but there is no password setting

I got error NOAUTH Authentication required when I connect to Redis server via command: redis-cli and run ping to check …

ruby-on-rails ruby-on-rails-4 redis sidekiq
PG::UndefinedTable: ERROR: missing FROM-clause entry for table when using joins and where

I have two models, Courier and Order. I have the following query below: active_couriers = Courier. available_courier_status. where(:…

ruby-on-rails ruby-on-rails-4 psql
Deprecated warning for Rails 4 has_many with order

class RelatedList < ActiveRecord::Base extend Enumerize enumerize :list_type, in: %w(groups projects) belongs_to :content has_many :contents, :…

ruby-on-rails ruby-on-rails-4
Rails association with multiple foreign keys

I want to be able to use two columns on one table to define a relationship. So using a task …

ruby-on-rails ruby-on-rails-4 associations model-associations
Nginx cannot find unix socket file with Unicorn (no such file or directory)

I am deploying a Rails 4 app to a Fedora 19 x64 server using Nginx and Unicorn. The problem is that I …

sockets unix nginx ruby-on-rails-4 unicorn
ActionMailer not sending mail in development Rails 4

Why is this mailer not sending any mail? (Or any ideas for debugging?) In my_app/config/environments/development.rb …

ruby-on-rails ruby-on-rails-4 actionmailer
Rails - Get the time difference in hours, minutes and seconds

I'm looking for an idiomatic way to get the time passed since a given date in hours, minutes and seconds. …

ruby-on-rails ruby ruby-on-rails-3 ruby-on-rails-4 ruby-2.0
Active admin install with Rails 4

I got this error when installing active admin on Rails 4 Bundler could not find compatible versions for gem "actionpack": In …

activeadmin ruby-on-rails-4