# Showing slides using periodically\_call\_remote in rails 2.3.5

**URL:** <https://www.ruby-forum.com/t/showing-slides-using-periodically-call-remote-in-rails-2-3-5/188266>\
**Category:** Rails\
**Created:** [May 8, 2010, 10:19pm UTC](https://www.ruby-forum.com/t/showing-slides-using-periodically-call-remote-in-rails-2-3-5/188266 "2010-05-08T22:19:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Smok](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@Smok](https://www.ruby-forum.com/u/Smok)\
**Post date:** [May 8, 2010, 10:19pm UTC](https://www.ruby-forum.com/t/showing-slides-using-periodically-call-remote-in-rails-2-3-5/188266/1 "2010-05-08T22:19:25Z")

</div>

Hello,

I have a problem with showing slides in a row. I would like to have a  
slideshow which would show all pictures. I am learning RUby so this  
example is from book 'Ruby on Rails". I am using Rails 2.3.5. Below  
the code that I use. The error that I am getting since Monday is:  
ActionController::UnknownAction (No action responded to show\_slide.  
Actions: create, destroy, edit, index, new, show, and update)  
I have included  
\<%= javascript\_include\_tag :defaults %\>  
in app/views/layouts/application.html.erb

Could you help me? I have no idea why it doesn’t work.

-------------------------------------------app/views/slideshows/  
show.html.erb --------------- begin

_\<%= @slideshow.name %\>_

\<% if @slide %\> 
 \<%= render :partial =\> "show\_slide" %\> 

\<%= periodically\_call\_remote :update =\> ‘slides’,  
:url =\> { :action  
=\> :show\_slide },  
:frequency =\> 1 %\>  
\<% end %\>  
\<%= link\_to ‘Edit’, edit\_slideshow\_path(@slideshow) %\> |  
\<%= link\_to ‘Back’, slideshows\_path %\>  
-------------------------------------------app/views/slideshows/  
show.html.erb --------------- end

-------------------------------------------app/views/slideshows/  
\_show\_slide.html.erb --------------- begin  
\<%= image\_tag “photos/#{@slide.photo.filename}” %\>

\<%= @slide.photo.filename %\>

-------------------------------------------app/views/slideshows/ \_show\_slide.html.erb --------------- end

-------------------------------------------app/controllers/  
slideshows\_controller.rb --------------- begin  
.  
.  
def show\_slide  
@slideshow = session[:slideshow]  
session[:slide\_index] += 1  
@slide = @slideshow.slides[session[:slide\_index]]  
if @slide == nil  
session[:slide\_index] = 0  
@slide = @slideshow.slides[0]  
end  
render :partial =\> “show\_slide”  
end  
-------------------------------------------app/controllers/  
slideshows\_controller.rb --------------- end
