Ruby on Rails

Image not found

Rails application using Postgres adapter can't activate pg

January 12, 2018 09:20

The pg gem recently released version 1.0.0 which is not yet compatible with Rails. If you're on Rails 5, change your Gemfile's pg requirement to the following: gem 'pg', '~> 0.18' or on Rails &l...

Image not found

Equivalent link_to in HTML

January 12, 2018 13:09

If you want to use href in HTML instead of link to. It's equivalent link_to in Rails. And if you want to use method you must use data-method in a tag.

Image not found

Object Id appear in active admin form [Ruby on Rails]

January 12, 2018 19:10

If you use active admin and if you use migration with references, in admin panel you can see object number on edit or new form. Let's say we have a company and a user table, and we have a reference...