# Clarify

**URL:** <https://www.ruby-forum.com/t/clarify/78909>\
**Category:** Rails\
**Created:** [March 9, 2006, 10:14am UTC](https://www.ruby-forum.com/t/clarify/78909 "2006-03-09T10:14:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dotnet\_java\_develop](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/90ced4/32.png) [@dotnet\_java\_develop](https://www.ruby-forum.com/u/dotnet_java_develop)\
**Post date:** [March 9, 2006, 10:14am UTC](https://www.ruby-forum.com/t/clarify/78909/1 "2006-03-09T10:14:01Z")

</div>

im learning rails and i got a error while writing a sample code.

## Script :

class GuestBookController \< ActionController::Base  
def index  
@entry = GuestBook.find\_all  
end  
def list\_parameters  
params = request.parameters  
render :text=\>“Parameters #{params}”  
end

def list  
params = request.parameters  
@entry = GuestBook.new(params[:name])  
@entry.save  
redirect\_to :action =\> “index”  
end  
end

* * *

i get the error " undefined method `stringify\_keys!’ for “name1”:String  
"  
while the list function is executed

“name1” which i get in the error is the value which i gave for the field  
name.

* * *

cud u help me to get rid of the error ?

---

<div class="post-metadata">

**Author:** ![dotnet\_java\_develop](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/90ced4/32.png) [@dotnet\_java\_develop](https://www.ruby-forum.com/u/dotnet_java_develop)\
**Post date:** [March 9, 2006, 10:35am UTC](https://www.ruby-forum.com/t/clarify/78909/2 "2006-03-09T10:35:22Z")

</div>

params is an already existing attribute, could give you some  
clashes…you might want to rename it…  
On Thursday, March 09, 2006, at 2:42 PM, dotnet java developer wrote:

> ```
> params = request.parameters
> 
> ```
> 
> cud u help me to get rid of the error ?
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

Mikkel B.

www.strongside.dk - Football Portal(DK)  
[nflfeed.helenius.org](http://nflfeed.helenius.org) - Football News(DK)  
ting.minline.dk - Buy Old Stuff!(DK)

---

<div class="post-metadata">

**Author:** ![dotnet\_java\_develop](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/90ced4/32.png) [@dotnet\_java\_develop](https://www.ruby-forum.com/u/dotnet_java_develop)\
**Post date:** [March 9, 2006, 10:41am UTC](https://www.ruby-forum.com/t/clarify/78909/3 "2006-03-09T10:41:39Z")

</div>

Am Donnerstag, den 09.03.2006, 14:42 +0530 schrieb dotnet java  
developer:

> ```
> params = request.parameters
> 
> ```
> 
> cud u help me to get rid of the error ?  
> The first line of your list method is redundant, because Rails already  
> provides the request parameter hash in the variable (actual a method)  
> params. Just drop this line. Maybe this solves it.

You are not saying on wich line the error occurs, but i guess it is line  
two @entry = GuestBook.new(params[:name]), isn’t it?

–  
Norman T.

[http://blog.inlet-media.de](http://blog.inlet-media.de)
