Displaying 1 result from an estimated 1 matches for "tinygallery".
Did you mean:
tiny_gallery
2006 Feb 03
0
component/ajax variable access problem
...@images is anymore.
On the view for the home page:
<div id="easel"><%= render_component(:controller =>
''tiny_gallery/album'', :action => ''show_photo'', :params =>{:context=>
:home }) %></div>
Component Controller:
class TinyGallery::AlbumController < ActionController::Base
uses_component_template_root
def show_photo
case
when params[:context] == :home
@images = [''/images/1.jpg'', ''/images/2.jpg'']
else
@images = [''/images/test.gif'']...