我在消息表中models/message.rb没有两send_to_all列。
在这里,我只想使用send_to_all复选框标志来切换模式以一次向所有用户发送消息。  
我怎样才能做到这一点?
意见/消息/new.html.erb
<%= f.check_box :send_to_all, :label => 'Send to all Users'  %> Check if you want to send to all users at once.
消息控制器.rb
    if params[:messages][:send_to_all]
        The action to send the same message to all users 
    else        
        The action to send the message to a user
    end