search for: thumbail

Displaying 2 results from an estimated 2 matches for "thumbail".

Did you mean: thumbnail
2006 Feb 16
10
Ruby class variables and access from view templates
I have an app that requires me to define a class variable (actually an array) in a controller and then access it from within a view. It seems that the class variables aren''t working right. Here is an example of what I''m trying to do. class DisplayController < ApplicationController @@thumbnail_array = Array.new ... def some_method @@thumbnail_array = SomeModel.find_all
2007 Dec 06
0
saving the user id for thumbnails using attachment_fu
...only saves this user_id for the main image and does not save it in the column for the thumbnail. So when I try and access the user_id to display the corresponding profile, it says the user_id is 0 and there is no user with that id. Is there any way to get attachment_fu to save the user_id to the thumbails too? Perhaps there is some other solution. Heres the code for the avatars so you can get a sense for what I am trying to do: <% for avatar in @avatar -%> <%= link_to image_tag(avatar.public_filename()), {:action => "index", :controller => "users", :user_id =&...