On 4 November 2010 11:23, Kostas L. <loup...@gmail.com> wrote:
> Hello,
> i have a strange problem here. I have made a teacher controller using
> scaffold. All actions work fine but the delete does not. When i click
> the delete link, it redirects me to the edit of this teacher. I have
> restarted the server and i have tried in firefox (i use chrome) but
> problem still remains. Here is the code from my view.
>
>   <%= link_to(image_tag("/images/
> delete_icon.jpg",:size=>"20x20",:border=>"0"), teacher, :confirm =>
> 'Are you sure?', :method => :delete)%>

Can you confirm whether you see the Are You Sure popup?  If not then,
as others have suggested, there is an issue with the javascript.
Check that you have
 <%= javascript_include_tag :defaults %>
in the layout (application.html.erb unless you have provided your own layout).

Colin

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to