similar to: Helper within a Helper? (IMAGE PLACEMENT)

Displaying 20 results from an estimated 10000 matches similar to: "Helper within a Helper? (IMAGE PLACEMENT)"

2006 Jul 28
2
gem install (Errno::EACCES)
I am finding it impossible to install a gem, and even more impossible to find help. Can anyone PLEASE help? - - - - - - - - - Mason-Kessingers-Computer:~/Desktop/rails/pygmalion masonkessinger$ gem install login_generator Attempting local installation of ''login_generator'' Local gem file not found: login_generator*.gem Attempting remote installation of
2006 Jul 25
6
DRY question (newbie)
Say i want to include the same chunck of text (a menu on a webpage for example) on each page. Is there a method by which I can save the HTML in a text file and call it up later? Is there a better way? I know ruby has "puts" but i can''t use that b/c it does not work with my webhost (dreamhost.com) Any suggestions? -- Posted via http://www.ruby-forum.com/.
2006 Jul 28
5
DREAMHOST SO SLOW
Does anyone know of any fixes to this? Any industry-known tips/tricks? The page loads sometimes take 20-30 seconds. so bad. mk -- Posted via http://www.ruby-forum.com/.
2006 Apr 04
2
newbie-server bound to 3000, cannot disconnect
I know there is a super easy answer to this, i just can''t remember. I have fired up my server on port 3000... and want to disconnect it. easy. ERROR MESSAGE: => Booting lighttpd (use ''script/server webrick'' to force WEBrick) => Rails application started on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server (see config/lighttpd.conf
2006 Aug 16
5
too many SESSIONS?
I just notices my app was down, and in the log file were lots of these: No space left on device - ../config/../tmp/sessions//ruby_sess.898b1cf95e14f8e3 So i figured that i had too many sessions. I went through and deleted the sessions and then in a few minutes, the site was back up again. Can anyone explain this? Did I do the right thing? Is there a way I can tell my app to accept more
2006 Jul 27
1
Password Protection
I want a really quick and easy way to password protect a directory in my rails app. Does anyone have any really quick/easy ideas or maybe a tutorial that I could use as example? Thanks! Mason Kessinger. -- Posted via http://www.ruby-forum.com/.
2006 Jul 18
13
RANDOM
I am pretty much new at this ROR game and had what I think to be a simple question. I have a set of Sponsors that I would like to be able to select one at random and display in the my html. I have already set up the DB, scaffolded, set index controller and all is working smoothly. I know that I can display them all by doing <% for sponsor in @sponsors %> <%= sponsor.name %>
2006 Aug 15
5
XML question
Is there a way you can use RoR to create an .xml file? Say I had a DB full of info that I wanted to format and have export as "lorem.xml" inside of a specific directory in my web server? Then, each time I updated the DB it would re-export the file (delete the old, save the new?) -- Posted via http://www.ruby-forum.com/.
2006 Jul 04
13
NewBie question
Hi, I m very new to Ruby. I bought a book "Ruby on Rails" and I think I understand some concepts. My question is : Is there a way to not use "Cookies" or "Sessions Variables" to keep some information about the user. I ask this question because I would like to prevent some cases where the user browser won''t accept cookies. I m from Asp 3.0, and I
2006 Jul 25
1
? Password Protection ?
Say I have some directories I want to password protect. sub.web-app.com/cms sub.web-app.com/cms_posts sub.web-app.com/cms_photos sub.web-app.com/cms_news where /cms is a page that allows access(links) to all three other cms pages. - - - Does anyone have any quick advice on how to password protect these areas? Any good online tutorials? Any advice? -- Posted via
2006 Jun 09
5
Using link_to with an image tag & link text
Hi , I was trying to use link_to along with image_tag to setup a link that would open in an external window. But I was unable to make a link using both text & an image So my current workaround looks like this inside a partial where link is http://foo.com & text would be descriptive <img src="images/arrow.gif" border="0"/> <%= link_to(text, link, :popup
2006 May 09
3
Named link to image
Hiall, Call me stupid if you like .,) but it seems i can''t figure out how to get a named link using a combination of link_to and image_tag. What I need is basically a link displaying a name along with some image to indicate status (open,working,finished). I found no combination of link_to and image_tag that accepts a name, this seems to be solely used for making whole images into links
2006 Jun 16
2
DISABLE auto-escaping in image_tag helper
Is there any way to disable image_tag''s automatic escaping of special html entities in it''s :alt tag? Example: >From the controller: @sale[''title''] = ''My Company Product&copy;'' In the view: <%= image_tag(''path/to/file.png'', :alt => @sale[''title'']) %> Output: <img alt="My Company
2006 Feb 10
2
file column within link_to
Hi, I correctly see: image_tag url_for_file_column("element", "picture_url", "medium") now I need to make it a link so I''ve used: <%= link_to(image_tag url_for_file_column("element", "picture_url", "medium"), {:controller => "products", :action => "sec_level", :level_id => @element.id}) unless
2007 Mar 24
4
image file URL generated by image_tag include some parameter
I''m using image_tag to generate img tag. URL of image file generated by image_tag include a parameter like following. "http:// ..... /images/filename.gif?123123123" What''s this number parameter for? How can I remove it? I''m using rails with built-in WEBrick server in test mode. --~--~---------~--~----~------------~-------~--~----~ You received this message
2008 Apr 24
7
Please help. The error occurred while evaluating nil.name
Okay so heres my code which works fine, i''ll explain the problem below. <% for num in 1..-04Gazou6+pmm/bHYDwDEOA@public.gmane.org %> <table class="products" id="table1" cellspacing="2" cellpadding="3" border="3"> <tr> <td> <table width="25%"> <tr> <tr> <td><%=
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 =>
2007 May 19
4
button_to_function with image?
Hi: does button_to_function allow the use of an image? I tried it in place of the text with "image_tag" and it doesn''t work. Maybe some form of button_to? Any direction you can give would be great! Mike -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2007 Feb 04
2
Can BackgrounDrb help me?
I have a big report to produce from a Rails app that takes several minutes to put together. I hoped backgroundrb would be able to pull together all the ActiveRecord stuff in the background then throw it back to Rails for rendering. It seems, however, that I can''t pass an array of ActiveRecord objects from the worker back to Rails. Do I have that right? Another possibility was to do
2006 Mar 27
2
svg image link
the link_to command is really nice, especially with confirm built in - wondering if there is a way to use it with SVG images since SVG doesn''t seem to work with image_tag I can display svg images (in Firefox) with the following code: <embed width=32 height=32 src="/images/quit.svg" type="image/svg+xml"></embed> "normal" link_to code: