Displaying 5 results from an estimated 5 matches for "include_host".
Did you mean:
include_hosts
2008 Dec 10
12
image_tag cannot show picture
Dear all
I am new to rails.
In view, I place the following code, but cannot show the picture in the
webpage
<%= image_tag("green.JPG") %>
However, I can access the picture in this url
http://localhost:3000/images/green.JPG
The HTML source code generated
<img alt="Green" src="/images/green.JPG.?1228211220" />
I cannot identify the problem. Please help
2006 Jul 25
1
RDig document processing error
Hi all,
Am having problems using RDig:
With this rdig config...
cfg.crawler.start_urls = [''http://www.defensetech.org'']
cfg.crawler.include_hosts = [''www.defensetech.org'']
cfg.index.path = ''/my/path/to/index''
cfg.verbose = true
...I get this output:
$ rdig -c config/rdig_config.rb
/usr/local/lib/site_ruby/1.8/ferret/index/term.rb:45: warning: method
redefined; discarding old text=
/usr/local/lib/site_r...
2007 Dec 01
3
Rails 2 problem with compute_public_path
...his
error. In this case, it''s ''image_tag''.
I''m looking at the source and don''t see any problem.
def image_path(source)
compute_public_path(source, ''images'')
end
def compute_public_path(source, dir, ext = nil, include_host =
true)
compute_public_path takes a minimus of one parameter, which is
supplied by image_path.
What am I doing wrong here?
Thanks,
Helzer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&q...
2007 Sep 18
4
basic rdig setup
...-c
config/rdig_config.rb
Both machines have an index dir at the rails root that has two files,
segments and segments_0. Both files look like they have next to nothing
in them.
Both rdig_config.rb files look like:
cfg.crawler.start_urls = [ ''http://domain.tpl/'' ]
cfg.crawler.include_hosts = [ ''domain.tpl/'' ]
cfg.index.path = ''./rdig_index''
cfg.verbose = true
cfg.content_extraction = OpenStruct.new(
:hpricot => OpenStruct.new(
:title_tag_selector => ''title'',
:content_tag_selector => ...
2007 Jan 23
3
Someone getting RDig work for Linux?
...ts/'' ]
# beware, mixing file and http crawling is not possible and might
result in
# unpredictable results.
# limit the crawl to these hosts. The crawler will never
# follow any links pointing to hosts other than those given here.
# ignored for file system crawling
cfg.crawler.include_hosts = [ ''www.example.com'' ]
# this is the path where the index will be stored
# caution, existing contents of this directory will be deleted!
cfg.index.path = ''/home/myaccount/index''
##################################################################...