Watched 1 video

Watched 1 Video from start to finish

Subscribed for 1 month

Learning and showing your support for 1 Month

Spread the word 1 time

Referred 1 Member to Drifting Ruby

10

10 times Chatter Box

Make 10 comments to videos or replies to other comments
1/10

Share the love 1 time

Liked 1 episode

3

Welcome back 3 times

You've visited Drifting Ruby on 3 different days

Suggested 1 episode

Helped the community by suggesting 1 episode

Vote Suggestion 1 time

Helped the community by voting on suggestions 1 time

1 time Chatter Box

Make 1 comment to videos or replies to other comments

Earned on 3/4/2019

# Name
[email protected] said over 1 year ago on FullCalendar Events and Scheduling :

Thank you for wonderful episode.
I am now trying to implement fullcalendar in my app.
But I stack the following code
view/events/create.js.erb:
When I enter Japanese characters, I got an error as the following.

app/controllers/events_controller.rb:31:in create'
Started POST "/events" for 127.0.0.1 at 2018-04-20 08:55:59 +0900
Processing by EventsController#create as JS
Parameters: {"utf8"=>"✓", "event"=>{"title"=>"テスト", "date_range"=>"04/07/2018 - 04/08/2018", "start"=>"2018-04-07 00:00", "end"=>"2018-04-08 00:00", "color"=>"black"}, "commit"=>"Create Event"}
(1.1ms) BEGIN
SQL (0.8ms) INSERT INTO
events(title,start,end,color,created_at,updated_at) VALUES ('テスト', '2018-04-07 00:00:00', '2018-04-08 00:00:00', 'black', '2018-04-19 23:55:59', '2018-04-19 23:55:59')
(0.4ms) ROLLBACK
Completed 500 Internal Server Error in 10ms (ActiveRecord: 2.4ms)
ActiveRecord::StatementInvalid (Mysql2::Error: Incorrect string value: '\xE3\x83\x86\xE3\x82\xB9...' for column 'title' at row 1: INSERT INTO
events(title,start,end,color,created_at,updated_at`) VALUES ('テスト', '2018-04-07 00:00:00', '2018-04-08 00:00:00', 'black', '2018-04-19 23:55:59', '2018-04-19 23:55:59')):

I am using Rails 5.1.2

How can I fix this?