At Simple Calendar I want to do article posting → calendar posting screen (create) → reflect on calendar, Currently, I can post articles, and I want to extract the title data of article posts from there and display only the title data on the calendar posting screen. *Title is the input form on this screen, but I want to get this Title from this Title.
- @tweets.each do |tweet| = @tweet.title I entered
I got an error like this:
As an association of blog (calendar) and tweet (article)
Is organized like this.
The blog db (database) 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 t.timestamps end
blog_controller is here.
When I posted an article, I could display the view on other pages.
I would appreciate if you could answer. I am an immature person, but I would appreciate your favor.