I have a Post
model that have a title
and content
attributes.
I want to make it possible to tweet when the user creates a post like this.
<%= form_for @post do |f| %>
<%= f.text_field :title %>
<%= f.text_area :content %>
<%= f.check_box :with_tweet %> # Error
<%= f.text_field :tweet %> # Error
<% end %>
This code fails, because there are no with_tweet
and tweet
attributes for Post
.
I don't think query strings are good idea situation like this.
How should I send a information that is not related a model?