about HAsh in ruby


I want to add values present in hash text_fields on form after form is
displayed. is it possible, how can i do it.

HI Nilesh

Your Question is not clear,

Can you explain with some example

for this text_area:
  <%= text_area( "user", "tasks", :cols=>30, :rows=>10) %>

default value would be to set
  @user.tasks = text_fields[:user_tasks]
in your controller.

hope this is what you were looking for.

well, you can do that like i posted before.
only thing you have to add is maybe an ajax-call to reload that
once you figured how to put default values into that text-area, and
how to replace_html with ajax, this should be no problem. try it.