search for: show_imag

Displaying 11 results from an estimated 11 matches for "show_imag".

Did you mean: show_image
2010 May 03
7
rendering images dynamically
Hi, I have a rails application where I respond to a request by fetching image urls from various web api calls and need to display them as they come available. I am able to display all the images once I get them all, but that causes an unacceptable delay for my user. One approach I am trying is, from my controller, set an @image variable, and then pass in a block to the model that retrieves the
2007 May 02
1
problem in: img_options["size"] = img_size
hi guys, I have show_image problem. I have the following code in application_helper.rb in my rails project def show_image(src,img_size) img_options = { "src" => src.include?("/") ? src : "/images/#{src}" } img_options["src"] = img_options["src"] + ".gif" unless...
2006 Apr 27
7
SuperImage plugin
...IUMBLOB" end I just could not get the ruby definition for :data to create a MEDIUMBLOB on mysql. The size parameter seems to have been completely disregarded. The clomun sets up as BLOB with a size limit of 16K, which is far to small for most image uploading needs. Second, the "show_image" action is currently included in via "include SuperImagePlugin::Show" This works, but it means the action name that performs the image retrieval is locked in to be "show_image". I would like to have it works this way: class MyImagesController < ... image_act...
2006 Jul 05
1
send_data image
I''m trying to display an image in a view from MySQL, but I''m not sure where to put the send_data call. Any help would be great. :) -- Posted via http://www.ruby-forum.com/.
2006 Aug 05
3
Four Days on Rails
...;'ve been reading the tutorial and I have problems with the TinyInt(1) for the attribute "item.done". I thought this thread would be the best to post it. I''m using Rails 1.1.14. When in the partial template _list_stripes appears: <%= list_stripes["done"] == 1 ? show_image("done_ico.gif") : "&nbsp;" %> it always returns the &nbsp. This is cause I think Rails now considers tinyint(1) as a boolean, so to make this works the sentence may be changed to: <%= list_stripes["done"] == true -----------------...
2006 Dec 26
0
[806] trunk/wxruby2/samples/treectrl: Restored demonstration of use of icons and fonts within TreeCtrl
...span class="lines">@@ -254,17 +228,22 @@ </span><span class="cx"> end </span><span class="cx"> </span><span class="cx"> def add_test_items_to_tree(num_children,depth) </span><del>- image = Wx::get_app.show_images() ? TreeCtrlIcon_Folder : -1 </del><ins>+ image = Wx::get_app.show_images ? TreeCtrlIcon_Folder : -1 </ins><span class="cx"> root_id = add_root("Root",image, image) </span><span class="cx"> if image != -1 </span>&l...
2006 Jul 18
0
another 2 newbie questions
...I have a HABTM relation for tags and images and a belongs_to/has_many relation for albums and images. Now in my views/tag/show.rhtml I have this: <% for album in @albums %> <% for image in @images %> <% if @tag.images.include? image %> <div id="images"> <%= show_image album.url+''/''+image.name %> <% end %> <% end %> The problem is that this displays all the albums url including those that are not listed as foreign key so it displays images that don''t exist ie dead links. Any idea how I could display the url of each imag...
2005 Dec 18
1
Showing images secure way
Hello all, I am working a big project for a kind of image storing and sharing website. Whole idea is to be member and store your images on the site and make some of them public. For security reasons; I store images outsite of public and in Administration section def show_image image = Image.find(params[:id]) raise "You are not owner of this image" if image.member != @member send_file(image.photo(params[:size])) end And in my view <img src="/admin/show_image/2121" /> What I am planning to do for public images is to copy them to...
2013 Apr 30
0
[ANNOUNCE] pixman 0.29.4 now available
...t: Add new pixel-test regression test utils.c: Increase acceptable deviation to 0.0064 in pixel_checker_t pixman-compiler.h: Add unlikely() macro Turn on error logging at all times lookup_composite: Don't update cache in case of error gtk-utils.c: Use cairo in show_image() rather than GdkPixbuf demos: Add linear-gradient demo program test: Add radial-perf-test, a microbenchmark for radial gradients Move the IS_ZERO() to pixman-private.h and rename to FLOAT_IS_ZERO() Improve precision of calculations in pixman-gradient-walker.c pi...
2007 Mar 29
0
[928] branches/wxruby2/wxwidgets_282/samples/treectrl/treectrl.rb: Fixed on_insert_item, call to insert_item had arguments in wrong order/missing.
...p2007-03-29 21:56:43 UTC (rev 928) </span><span class="lines">@@ -1122,7 +1122,7 @@ </span><span class="cx"> </span><span class="cx"> def on_insert_item(event) </span><span class="cx"> image = Wx::get_app.show_images() ? TreeCtrlIcon_File : -1 </span><del>- @treectrl.insert_item(@treectrl.get_root_item(), image, "2nd item") </del><ins>+ @treectrl.insert_item(@treectrl.get_root_item(), -1, "2nd item", image) </ins><span class="cx"> end &...
2006 Sep 05
0
rake craziness with Migrate as a dependency
...rs, "image", :string, {:default=>"", :limit=>255, :null=>false}) -> 0.2100s == AddPictureToUser: migrated (0.2100s) ======================================= == AddShowPictureFlagToUsers: migrating ======================================= -- add_column(:users, "show_image", :string, {:default=>"0", :limit=>1, :null=>false}) -> 0.4610s == AddShowPictureFlagToUsers: migrated (0.4610s) ============================== == AddAmtSoldToSkus: migrating ================================================ -- add_column(:skus, "amt_sold",...