Yeah, that looks like a bug. Can you file an issue on Github and/or submit
a pull request with the fix? We need to make sure to update the message.rb
and message_controller tests to catch this.


On Wed, Mar 5, 2014 at 3:53 PM, jsh <joshua.chu...@gmail.com> wrote:

> Hi Bruno,
>
> I am using Ruby2.0.0, Rails 3.2.17, CE master branch
>
> Thanks!
> josh
>
>
> On Wednesday, March 5, 2014 12:59:32 PM UTC-7, Bruno wrote:
>
>> Hi Josh,
>> What version of Rails and CE are you using?
>>
>> Thanks,
>> Bruno
>>
>>
>> On Wed, Mar 5, 2014 at 1:42 PM, jsh <joshua...@gmail.com> wrote:
>>
>>> Hi, I am new to rails and CE.
>>>
>>> When replying to a private msg in CE, I got the following error:
>>>
>>> ActiveModel::MassAssignmentSecurity::Error in MessagesController#create
>>>
>>>
>>> Can't mass-assign protected attributes: parent_id
>>>
>>>
>>> I figured it can be fixed by overriding the message.rb in my app by
>>> doing this
>>> ----
>>> class Message < ActiveRecord::Base
>>> require_from_ce('models/message')
>>> *attr_accessible :parent_id*
>>> end
>>> ------
>>>
>>> Is this a bug? or did I miss something?
>>>
>>> Thanks!
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "CommunityEngine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to communityengi...@googlegroups.com.
>>> To post to this group, send email to communi...@googlegroups.com.
>>>
>>> Visit this group at http://groups.google.com/group/communityengine.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "CommunityEngine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to communityengine+unsubscr...@googlegroups.com.
> To post to this group, send email to communityengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/communityengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to communityengine+unsubscr...@googlegroups.com.
To post to this group, send email to communityengine@googlegroups.com.
Visit this group at http://groups.google.com/group/communityengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to