After posting an article with Rails Simple Calendar, I want to reflect it in the calendar.

On Simple Calendar I would like to post an article → post calendar screen (create) → reflect it in the calendar. Currently, article posting is done, and I want to extract the title data of the article posting from it and display and acquire only the title data on the calendar posting screen. 540d264cf48615032c7353a06dffbdf6.png

I have tried it 5336e6a17d83d2db786feb63021d995c.png


I got an error like this.

As an association between blog (calendar) and tweet (article) 4c606c184b85049ae3185dc556a08022.png 025a6b6e9003a3707599aa75945c6d5e.png

Is assembled like this.

The db (database) of the blog is here.

 create_table :blogs do |t|
  t.string :title
  t.text :content
  t.datetime :start_time

  t.references :user, foreign_key: true
  t.references :tweet, foreign_key: true
  t.string :tweet_title

The blog_controller is here.


When posting an article, the view could be displayed on another page. 52b32613dc3a1aa18170323ae8d61abe.png db9032b4f568d364a6a228d3c5415f0b.png

I would appreciate it if you could answer. I am an inexperienced person, but thank you.

Recommended Posts

After posting an article with Rails Simple Calendar, I want to reflect it in the calendar.
I want to change the path after new registration after logging in with multiple devises.
I want to push an app made with Rails 6 to GitHub
[Java] I want to perform distinct with the key in the object
After learning Progate, I tried to make an SNS application using Rails in the local environment
I want to display an error message when registering in the database
I want to ForEach an array with a Lambda expression in Java
I want to introduce the committee with Rails without getting too dirty
I want to send an email in Java.
I tried to organize the session in Rails
I want to play with Firestore from Rails
I want to truncate after the decimal point
[Rails] I want to load CSS with webpacker
I want to get the value in Ruby
Rails6 I want to make an array of values with a check box
I want to embed any TraceId in the log
I want to use a little icon in Rails
I want to dark mode with the SWT app
I want to authenticate users to Rails with Devise + OmniAuth
I want to define a function in Rails Console
[Rails] How to display an image in the view
I want to morphologically analyze the log in the DB and put it in the DB to classify messages 1
[Rails] How to delete production environment MySQL data after putting it in the development environment
[Rails] I want to display the link destination of link_to in a separate tab
I want to return an object in CSV format with multi-line header & filter in Java
I want to hit the API with Rails on multiple docker-composes set up locally
[Rails] [bootstrap] I want to change the font size responsively
I want to create a form to select the [Rails] category
Even in Java, I want to output true with a == 1 && a == 2 && a == 3
I want to manually send an authorization email with Devise
Implemented a strong API for "I want to display ~~ on the screen" with simple CQRS
I want to transition to the same screen in the saved state
I want to recreate the contents of assets from scratch in the environment built with capistrano
I want to pass the startup command to postgres with docker-compose.
I want to simplify the conditional if-else statement in Java
[Rails] I made a simple calendar mini app with customized specifications.
I want to add a browsing function with ruby on rails
I tried to sort the data in descending order, ascending order / Rails
I want to return to the previous screen with kotlin and java!
I tried to implement the image preview function with Rails / jQuery
How to get boolean value with jQuery in rails simple form
I want to add devise in Rails, but I can't bundle install
I want to remove the top margin in Grouped UITableView (swift)
I don't see an error in Rails bundle install ... the solution
[Rails] I want to add data to Params when transitioning with link_to
I want to change the value of Attribute in Selenium of Ruby
[Android] I want to get the listener from the button in ListView
I tried to solve the past 10 questions that should be solved after registering with AtCoder in Java
[For beginners] I want to automatically enter pre-registered data in the input form with a selection command.
I want to download a file on the Internet using Ruby and save it locally (with caution)
[Java] Output the result of ffprobe -show_streams in JSON and map it to an object with Jackson
[Ruby] I want to output only the odd-numbered characters in the character string
[Rails] I want to send data of different models in a form
The corretto I put in Homebrew disappeared after updating, so I fixed it.
I want to select multiple items with a custom layout in Dialog
Even in Java, I want to output true with a == 1 && a == 2 && a == 3 (PowerMockito edition)
[Note] I want to get in reverse order using afterLast with JdbcTemplate
I tried to solve the tribonacci sequence problem in Ruby, with recursion.
I want to display a PDF in Chinese (Korean) with thin reports
[Rails] How to get the user information currently logged in with devise
I want to get the IP address when connecting to Wi-Fi in Java