Forum: Ruby on Rails !map:HashWithIndifferentAccess

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
17da318855d695d08408ded419132012?d=identicon&s=25 Balaji Rajagopalan (balajirajagopalan)
on 2008-12-11 11:19
(Received via mailing list)
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  %>

  <tr>
        <td class="text1"><%=h resort_basic.website %></td>
    <td class="text1"><%= 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 %>
</td>
  </tr>
<% end %>
-------------------------------------------------------------
edit .html

<%= debug(params)%>

<% form_for(@resort_basic) do %>


<!--% form_for @editresortbasic do %-->


 <br><br>
   <h3 align="center">Edit Resort Basic</h3>
 <table align="center">
    <tr>
        <td>
           <b>Resort Name</b>
        </td>
        <td>

            <%= 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
This topic is locked and can not be replied to.