Hallo teman2,
saya pemula yg sedang belajar RoR, dan mendapatkan error dengan pesan seperti 
subject email ini di atas.
Saya membuat edit.rhtml sbb :
    <% form_tag :action => "update", :id => @album.id do %>
      Title : <%= text_field(:album, :title) %> <br/>      Artist : <%= 
text_field(:album, :artist) %> <br/>      Genre : <%= text_field(:album, 
:genre) %> <br/>      Release Date : <%= datetime_select(:album, :release_date, 
:start_year => 1960) %>         <br/> <br/>
      <%= submit_tag("Edit") %> <br/>
      <% end %>

Dan saya mempunyai action sbb:
 def update   �...@album = Album.find(params[:id])    if 
@album.update_attributes(params[:album])      redirect_to(:action => 'list')    
else      render(:action => 'edit')    end  end
Setelah saya menulis di URL : http://localhost:3000/public/edit/1Lalu 
mengupdate data di form yang muncul, dan meng-click "Edit"
Muncul pesan error di halaman : http://localhost:3000/public/update yaitu :
ActiveRecord::RecordNotFound
  
    in PublicController#update
  

Couldn't find Album without an ID
Mohon pencerahannya pada para expert.
Terima kasih.




 



  











      

[Non-text portions of this message have been removed]

Kirim email ke