31 Mar '17, 6pm

Ruby on Rails - Emoji not saved in MySQL [Score:5]

I'm working on a Rails app where users can upload photos to their profiles. Every photo has a title, which is supposed to support emoji. Despite changing encoding of the table to utf8mb4 and modifying database.yml when i try to save a photo with emoji in its title MySQL returns an error 'incorrect string value'. The app is working on Rails 5.0.0.1 with Ruby 2.3.0, MySQL is working on version 5.7.16. Migration file: class CreateUserPhotos < ActiveRecord::Migration[5.0] def change create_table :user_photos do |t| t.string :title t.string :filename, null: false t.integer :visibility, null: false, default: 0 t.belongs_to :user, foreign_key: true, index: true t.timestamps end reversible do |dir| dir.up do execute "ALTER TABLE `user_photos` CHANGE `title` `title` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;" end dir.down do execute "ALTER TABLE `user_photos` CH...

Full article: http://stackoverflow.com/questions/43117279/ruby-on-rails...

Tweets

Ruby on Rails:

Ruby on Rails:

Rails is a web application development framework written in the Ruby language. It is designed to make programming web appl...

Ruby on Rails 5アプリケーションプログラミング

amazon.co.jp 04 Apr '17, 1pm

\ \Aql{bgmFKvBANZXAguEUNbL[mFB : VbsO pK vCoV[K 1996-2013, Amazon.com, Inc. or its affiliates

Тим-лид, Ruby on Rails https://t.co/jVU1WY4BkQ

Тим-лид, Ruby on Rails https://t.co/jVU1WY4BkQ

ulan-ude.hh.ru 06 Apr '17, 4am

Знание HTML, CSS, JavaScript (jQuery, Ajax), Slim Знание PostgreSql Знание Unix Умение работать с Git Наличие опыта разраб...

#Ruby on rails rake db error #Tech #Internet #Q...

abizy.com 03 Apr '17, 9am

How to Slow Brain Aging by Two Years How to Slow Brain Aging by Two Years Category:Videos Source: YouTube More:Similar Vid...

RUBY - #SPECIFICATION #PATTERN #ruby #rails #ru...

rubyonrails.ba 02 Apr '17, 7pm

The specification pattern is a particular software design pattern, whereby business rules can be recombined by chaining th...

New Job Alert: Ruby on Rails female proxy neede...

freelancer.com 29 Mar '17, 9pm

drag drop tree ajax mysql asp rails ruby , rails ruby parse scrape email , hotel booking rails ruby conf , rails ruby beog...

Driving School Education App/Website Ruby On Ra...

freelancer.com 30 Mar '17, 10pm

I operate a (Drivers Education School) Teen/Adult Driving school and need some assistance. Need a programmer to Link my we...

#DATE_FORMAT error in ruby in rails 4 with sql ...

abizy.com 07 Apr '17, 6am

How to Slow Brain Aging by Two Years How to Slow Brain Aging by Two Years Category:Videos Source: YouTube More:Similar Vid...

Ruby on Rails and C++ Jobs - San Diego, CA 9210...

jobs.climber.com 01 Apr '17, 11pm

Join the Postings.com Development Team! Position Summary: As a full time Senior Web Developer you will primarily be respon...

Ruby on Rails Downtown San Diego - San Diego, C...

jobs.climber.com 01 Apr '17, 11pm

Join the Postings.com Development Team! Position Summary: As a full time Senior Web Developer you will primarily be respon...

5 tips for making your #Capybara tests in #Ruby...

semaphoreci.com 05 Apr '17, 4pm

The terminology for integration and acceptance testing is quite broad within the Rails community. Most of the time Capybar...

@akipii Ruby 2.4には対応済みです。

redmine.org 02 Apr '17, 10am

Rails 4.2.8 on Ruby 2.4 tests fail. 1) Failure: QueryTest#test_issue_count_by_list_custom_field_group [/REDMINE/WORK-DIR-N...

build a website in ruby on rails by dushantsharma

freelancer.com 30 Mar '17, 10am

i need website to design names in image , best website to design new year wishers , i need to build a new website for a fu...

#Representing percentages through getters and s...

abizy.com 06 Apr '17, 12am

How to Slow Brain Aging by Two Years How to Slow Brain Aging by Two Years Category:Videos Source: YouTube More:Similar Vid...

Support of Ruby 2.1 has ended

ruby-lang.org 01 Apr '17, 12am

We announce that all support of the Ruby 2.1 series has ended. After the release of Ruby 2.1.10 at the end of March of the...