[Rails] Re: Can't mass-assign protected attributes: item

2014-08-15 Thread javinto
Hi, In the code you posted there is no attr_accessible :item is there? Jan Op donderdag 14 augustus 2014 23:31:12 UTC+2 schreef Fernando Aureliano: Hi! I'm using the version of that gem https://github.com/crowdint/acts_as_shopping_cart for rails 3 I did evething with ythe convetions

[Rails] Re: Can't mass-assign protected attributes: item

2014-08-15 Thread Fernando Aureliano
Hi! I tried, but the error persist. Em quinta-feira, 14 de agosto de 2014 18h31min12s UTC-3, Fernando Aureliano escreveu: Hi! I'm using the version of that gem https://github.com/crowdint/acts_as_shopping_cart for rails 3 I did evething with ythe convetions names. But I'm getting the

Re: [Rails] Re: Can't mass-assign protected attributes: item

2014-08-15 Thread Colin Law
On 15 August 2014 10:48, Fernando Aureliano m...@fernandoaureliano.com wrote: Hi! I tried, but the error persist. Which version of Rails are you using? If it is 4 then you need to use strong parameters http://edgeapi.rubyonrails.org/classes/ActionController/StrongParameters.html Colin Em

[Rails] Re: Can't mass-assign protected attributes: item

2014-08-14 Thread Eric Saupe
Quick Google search brought up http://railscasts.com/episodes/26-hackers-love-mass-assignment and this StackOverflow question, http://stackoverflow.com/questions/6163759/cant-mass-assign-protected-attributes. On Thursday, August 14, 2014 3:31:12 PM UTC-6, Fernando Aureliano wrote: Hi! I'm

[Rails] Re: Can't mass-assign protected attributes: item

2014-08-14 Thread Fernando Aureliano
Hi! Thanks! but if you read the code below, you gonna see that my code is already have *attr_accessible *for all items. Em quinta-feira, 14 de agosto de 2014 18h31min12s UTC-3, Fernando Aureliano escreveu: Hi! I'm using the version of that gem