upgrading model code containing attr_accessible with

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

upgrading model code containing attr_accessible with

fugee ohu
Trying to upgrade the code below 

class Mailboxer::Notification < ActiveRecord::Base 
attr_accessible :body, :subject, :global, :expires if Mailboxer.protected_attributes?

There's no message model The messages are the receipts They belong to notifications which belong to conversations Although there's no message model there's a messages controller which had no strong params  so I put them there and commented out attr_accessible like this 

  def message_params
     params.require(:message).permit(  :body, :subject, :global, :expires)

but that didn't fix the problem that the message object comes up nil in conversation show view

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d8bd6d04-6bee-40e2-8d2f-1c335fd8aa6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.