similar to: image_tag cannot show picture

Displaying 20 results from an estimated 1000 matches similar to: "image_tag cannot show picture"

2006 Jan 04
1
[BUG?] image_tag
i''ve got the latest ruby and rails on this box and am seeing that image_tag will turn something like /foo/bar.jpg into /foo/foo/bar.jpg in the following situation: /ror/foo/public /var/www/html/foo -> /var/ror/foo/public/ image_tag("/foo/bar.jpg") this is exactly how compute_public_path is written to work: def compute_public_path(source, dir, ext)
2009 Jan 06
2
Change the default folder for image_tag, javascript_include_
Hi, I don''t want my default folder to be mysite.com/images/logo.png, but instead mysite.com/common/images/logo.png How can I change that? Same applies to stylesheets and javascripts. Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2010 Jan 15
21
Dynamic Assets - can it be done?
I''m looking for 3 areas to work as dynamic assets: image_path, javascript_path, and stylesheet_path When I say dynamic, I mean that they will be dynamic through controller/models. I have been working through approx. 12 hours of searches to satisfy my answer to this question but am not finding much luck. The closest things I''ve found enabling this are use of config for assets
2006 May 23
3
image_tag problem
Hiall, I want to make an image_tag from within a controller in order to be able to present a link (with a status image) in a view. Here is my controller method (in file webca_controller.rb, hence WebcaController) def untouched_status_image_tag image_tag("open", { :alt => "Offen", :title => "Offen", :size => "12x12", :class =>
2007 Dec 01
3
Rails 2 problem with compute_public_path
I''m trying to migrate to Rails 2, but keep getting these errors all over the place: ActionView::TemplateError: wrong number of arguments (2 for 3) On line #61 of users/new.rhtml 58: <% if @captcha_error -%><div class="fieldWithErrors">< % end -%> 59: <table class="signup"><tr> 60: <td
2007 Oct 26
3
--prefix, url_for and image_tag
First time here, so I hope this isn''t a FAQ (although I did check *the* faq). I''m using mongrel_cluster with --prefix, and it is very slick. Thanks for that. But I had one problem. At one point in my little app, I have something like this: image_tag(url_for(:action => ''picture'', :id => 1), :size => "160x200") In this scenario,
2008 Oct 28
7
How to override one method of AssetTagHelper
I created a file ./lib/action_view/helpers/asset_tag_helper.rb and put in it only the method I want to override. like this module ActionView module Helpers #:nodoc: module AssetTagHelper def image_path(source) compute_public_path(source, ''images'') end end end end But as soon I try this all the others methods from the overriden module are not
2013 Sep 18
3
pxechn.c32 halting
I upgraded from syslinux 4.x to syslinux 6.01 and am now having issues with pxe chaining. I've tried moving up as far as 6.02-pre16, but I'm still experiencing the same problem. The original config called the next server as follows: LABEL Cobbler KERNEL pxechain.com APPEND 10.x.x.x::pxelinux.0 Which worked for the previous version, but I started getting an error after
2009 Feb 24
4
Cannot pass id field to ActiveRecord
Dear all I have a dummy question. The model code as follow: class User < ActiveRecord::Base set_primary_key "username" end In script/console user = {:username => "123", :display_name => "345"} => {:username=>"123", :display_name=>"345"} a = User.new(user) => #<User username: nil, display_name: "345">
2009 Jan 29
7
Installed gems aren't installed
Like the subject says, I''ve got a really weird problem. A co-worker added a couple of gems to our rails project. I installed these gems on my machine (a macbook, os x 10.5.6), start the server, and it says it can''t find these gems: ============= Missing these required gems: mini_exiftool = 1.0.1 mini_magick = 1.2.3 You''re running: ruby 1.8.6.114 at
2010 Jan 28
2
How to execute an arbitrary script when a puppetclient ask for a manifest?
Hi, I would like to use Puppet in the cloud (think gogrid) to configure stem images. Virtual machines are created/destroyed on the fly under control of a load monitor. For this reason we cannot sign manually new Puppet clients, instead, we must use Puppet''s autosign feature. At the moment, Puppet just permits to filter client manifest requests with some regex over the hostname of the
2009 Jan 13
2
Connect multiple DB in rails project using AR
Dear all I have a rails project which database connection is defined in database.yml. There is a table call "servers" which have about 40 records, which is a collection of database setting (i.e. Server.name, Server.port, Server.host) I know the way to establish multiple connection as below... class A < ActiveRecord::Base end A.establish_connection(a) # a is the database config
2014 Feb 10
1
pxechn.c32 halting
On Thu, Sep 19, 2013 at 5:13 PM, Gene Cumm <gene.cumm at gmail.com> wrote: > On Wed, Sep 18, 2013 at 4:09 PM, Chris Valentino > <chris.valentino at 1010data.com> wrote: >> I upgraded from syslinux 4.x to syslinux 6.01 and am now having issues with >> pxe chaining. I've tried moving up as far as 6.02-pre16, but I'm still experiencing the same problem. The
2005 Nov 16
2
does upgrading rails require you to use generate rails again for existing apps?
If I upgrade from my current version 0.14 to the latest version using "gem update rails" do my existing apps need to have the rails structure re-generated to take advantage of changes to rails? If so is there an easy way to do this without loosing my MCV''s? Thanks, Kris.
2009 Jan 30
1
How to call UNIX environment variable in rails
Dear all How can I call the UNIX environment variable in my rails project? For example echo $HOME /path/to/my/home/dir Thank you very much Valentino -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2009 Mar 17
11
Refactoring module
Dear all Please see the following module, In module SX3 SX4 and SX5 have similar class Tasklist, but inherit from different class. I will use the following code to connect to different data sources RemoteSX3Model.establish_connection sx3_hash RemoteSX4Model.establish_connection sx4_hash RemoteSX5Model.establish_connection sx5_hash How can I refactor my code in module to look simpler? Thank you
2008 Nov 21
2
How to install the plugin manually?
Dear all I would like to install plugin auto_complete but failed.. jruby -S script/plugin discover C:/jruby-1.1.5/lib/ruby/1.8/open-uri.rb:278:in `open_http'': 407 Proxy Authentication Required (OpenURI::HTTPError) I have set the http_proxy=http://user:password@host:port/, It is working fine to fetch gem files. I know the plugin is in here:
2009 Oct 25
3
Image_tag Positioning/Alignment
Hi: I searched the forum before posting and could not find any help on how to position an image using image_tag (''image_name''). I have an image in a div, and I need to move it to the right. How do I this? I have this code: <div id="mainDivright"><%= image_tag (''name.gif''), :options => {:align=>"right" } %></div> I
2008 Oct 17
1
link_to + image_tag
i want to integrated link_to with image_tag before i did link_to with image_tag like this <%=link_to image_tag(image.filename
2007 Aug 13
1
link_to image_tag puts a box round my image
I''ve got a rather long conditional statement that either displays a link_to(image_tag(blah)blah) or just an image_tag (i''ve edited it a bit to show the structure): <%= (article.score_from_user(:user_id => session[:user]) != -1) ? (link_to image_tag("/images/down_arrow_grey.jpg", :alt => "down"), :controller=>"article", :action =>