# Error message: ActionView::TemplateError (No :secret given t

**URL:** <https://www.ruby-forum.com/t/error-message-actionview-templateerror-no-secret-given-t/144276>\
**Category:** Rails\
**Created:** [July 28, 2008, 3:59am UTC](https://www.ruby-forum.com/t/error-message-actionview-templateerror-no-secret-given-t/144276 "2008-07-28T03:59:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsn1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Post date:** [July 28, 2008, 3:59am UTC](https://www.ruby-forum.com/t/error-message-actionview-templateerror-no-secret-given-t/144276/1 "2008-07-28T03:59:23Z")

</div>

Hi all

I am getting this error message on the log, and I do not unserstand it.

I am using rails 2.0. Please advice

ActionView::TemplateError (No :secret given to the #protect\_from\_forgery  
call. Set that or use a session store capable of generating its own  
keys (Cookie Session Store).) on line #8 of store/index.html.erb:  
5:

### \<%= h(product.title) %\>
  
6: \<%= product.description %\>  
7: \<%= number\_to\_currency(product.price) %\>  
8: \<%= button\_to “Add to cart”, :action =\> :add\_to\_cart, :id=\> product  
%\>  
9:   
10: \<% end %\>  
11:
