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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---