Displaying 11 results from an estimated 11 matches for "show_images".
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
img_options["src"].include?(".")
2006 Apr 27
7
SuperImage plugin
Greetings all,
This is the first release of the SuperImage plugin. The idea is you
upload images to the database, and then pull them out at any size you
want. Combine this with caching and it will stay light and fast.
More info and instructions are here:
http://beautifulpixel.textdriven.com/articles/2006/04/27/superimage-plugin-making-resizeable-uploaded-images-easy
svn:
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
I''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") : " " %>
it always returns the
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><...
2006 Jul 18
0
another 2 newbie questions
Hey all,
Ok I have three tables:
Images(id,name,dirid) #dirid is a foreign key to Album.url, the path
to the image
Albums(id,url)
Tags(id,name)
ImagesTags(image_id,tag_id)
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
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
2013 Apr 30
0
[ANNOUNCE] pixman 0.29.4 now available
A new pixman release 0.29.4 is now available. This is a release
candidate for a stable 0.30.0 release.
News in this release:
- More fast paths in the MIPS DSP r2 backend [Nemanja Lukic]
- Better-looking gradients [S?ren Sandmann]
Plus bug fixes and improvements to the test suite. Please test, and
report bugs to pixman at lists.freedesktop.org or file them at
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
Hi everyone,
For one of our projects we have a need to deploy and maintain a demo.
As a result I''ve attempted to setup a set of rake tasks for the job.
My goal is have one rake task called "deploy_demo" which purges the
database, migrates to the current schema, and loads the db from a set
of fixture files in a specified location.
I''ve written two new tasks the perform