!map:HashWithIndifferentAccess


#1

Hi

Im using list page and dubug the code and i got the error

!map:HashWithIndifferentAccess
controller: wizard
page: !str 2
id: !str 9
action: index

index.html

<% for resort_basic in @resort_basics %>

<%=h resort_basic.website %> <%= link_to 'Show',:action=>'show',:id =>resort_basic %> <%= link_to 'Edit',:action=>'edit',:id => resort_basic %> <%= link_to 'Destroy', :id => resort_basic, :confirm => 'Are you sure?', :method => :delete %> <% end %> ------------------------------------------------------------- edit .html

<%= debug(params)%>

<% form_for(@resort_basic) do %>



Edit Resort Basic

Resort Name
        <%= text_field_tag :resortname %>
    </td>

</tr>

wizard_controller

def edit

@resort_basic =ResortBasic.find(params[:id])

if request.post?

#@resort_basic.update_attributes(params[:resort_basic])

flash[:notice] = ‘Resort was successfully updated.’

end


and click the edit button i got the error

— !map:HashWithIndifferentAccess
controller: wizard
id: !str 9
action: edit

i click the edit button values are not displayed in textbox.ID value is
9
and ID value is correct in database but doesn’t value displayed in text
box.
I can’t understand the error.so give any idea.thanks for ur help