Displaying 20 results from an estimated 100000 matches similar to: "Setting-up HTMLDOC"
2006 Dec 28
0
HTMLDOC PDF Generation
Okay. I''ve tried it all, or so it seems. The code:
generator = IO.popen("htmldoc-no-compression -t
pdf14-quiet-jpeg-path \".;http://#{request.env["HTTP_HOST"]
+ request.env["REQUEST_URI"]}\"-webpage -", "w+")
generator.close_write
send_data(generator.read, :filename => filename, :type =>
"application/pdf")
I basically
2008 Nov 21
15
Switching the version of Rails that an app uses
Hi All,
I’ve got a few versions or Rails installed and I''d like to run an App
I’m developing with various versions of Rails. I heard of two ways to
switch the version of Rails that an app uses:
1. Use GitHub as described by http://kylecordes.com/2008/04/30/git-windows-go/
. But that requires using Bash in a Command Window and more steps
than I want to go through.
2. Alter
2007 Feb 14
2
prepend_before_filter
I''ve got a couple of before_filters that need to run in a specific order. One does a redirect_to if a session variable isn''t set. The other does a find which will fail if the session variable isn''t set. So they need to run in that order. But prepend_before_filter doesn''t seem to be working as advertised. Anybody got any insight? I''m still running
2008 Jun 23
12
From Instant Rails 2.0 to Rails 2.1.0
hi,
I have installed Instant Rails 2.0 on my machine which comes with
Rails 2.0.2. Now I want to update my Rails to version 2.1.0. So I do
gem update rails and It seems to be fine. But when I check the version
of my Rails I get the following message:
>rails -v
C:/RoR/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:578:in
`report_activate_error'': RubyGem version error: activesupport(2.0.2
not
2007 Aug 07
1
core team email address?
Anybody know if the old rubyonrails.org email address is still valid for questions to the core team?
Thanks,
Bill
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this
2006 May 10
0
Making pdf with HTMLDOC
Hello,
I''m having a problem with HTMLdoc and rails.
I''ve set it up as per
http://wiki.rubyonrails.com/rails/pages/HowtoGeneratePDFs and I''m using
windows and version 1.8.24.
I can make ps files without a problem and I can make pdfs using the
stand alone app, however I can''t get the pdf created in RoR to work.
Loading it into gsviewer I get the error
2009 Apr 29
0
HTMLDOC Table header row(s) to repeat on subsequent pages
Hello,
I need to display table headers on each page in the pdf generated using
HTMLDOC.
For example, my table contains header as Name, Address, Age. It is
displayed in first page. When the content of the table extends to next
page, only the content is displayed and header is not displayed.
If you note, in the attached pdf, table header is displayed only in the
first page, pasted in top and not
2006 Aug 22
7
Cleanup at session expiration
I''m going to explicitly time out sessions if they''re idle more than X minutes. Like online banking sites do.
How do I set things up so that, when a session expires, a set of database records and a set of files that may have been created (which are identified via a seperate set of database records) are deleted just before the session data?
TIA,
Bill
2008 Sep 13
4
Setting up RoR with Postgresql ---heeellpp!
Hi there, I''ve been trying for a few hours now to get RoR and postgresql
talking - but I''m very confused about what''s going on (I''m running
windows btw).
I haven''t created a database in postgresql (I''m assuming that RoR will
do that?)
my database.yml looks like this:
production:
adapter: ruby-postgres
database: rails_production
2008 May 22
9
Retrieving Mutliple Records using find_by_*
I was hoping that AR''s find_by_* magic methods would help me retrieve
multiple items somewhat like the following:
names_to_find = [''Larry'', ''Moe'', ''Curly'']
found_people = Person.find_by_name(names_to_find)
Is there a way to accomplish this using find_by_* (or even find(:all)
using some sort of conditions) or must I resort to SQL
2006 Nov 04
6
Ruby/XSLT
Anybody got any experience using this ( http://greg.rubyfr.net/pub/packages/ruby-xslt/files/README.html ) ? I asked my hosting company (a2hosting.com) about XSLT processors for Rails and mentioned this one. Four hours later I get email that they''ve installed it. Thing is, the documentation didn''t generate, and when I execute ''gem list --local'' it''s
2008 Jul 02
1
MySQL gem vs RoR default library
I have Rails v 2.0.2
Ruby v 1.8.6
MySQL db v 5.x
I am confused as to whether we should use the MySQL gem or the RoR
default MySQL support library.
The consultants that had worked on the initial phase of the project
had me remove the gem saying that
it is better to use the RoR library, that the gem was necessary in
earlier version of Rails.
BUT, I get the WARNING below which says the opposite.
2007 Jun 15
3
Error when running functional test - Errno::ENOENT
Hello,
I''m getting an error when running functional tests as follows, using
Mac OSX 10.4.9, Rails 1.2.3 .
When I run:
ruby test/functional/campaign_controller_test.rb
I get this error:
Started
E
Finished in 0.027402 seconds.
1) Error:
test_should_get_icon_data(CampaignControllerTest):
Errno::ENOENT: No such file or directory - /usr/src/projects/myproject/
2009 Feb 07
2
installing ruby-postgres gem
I''m starting to look at postgres because I''m going to need it for its
GIS extensions. But I run in into a problem when trying to install the
ruby-postgres gem. I get this error
Building native extensions. This could take a while...
ERROR: Error installing ruby-postgres:
ERROR: Failed to build gem native extension.
blah
blah
blah etc
postgres.c:31: error: conflicting types
2011 Feb 19
1
undefined method `map' for nil:NilClass for rails 2.3.2
Hai guys!
When i try to do rake gems:install and rake gems:refresh_specs in my app
below error is occurred. please give some solution for this.
config.gem: Unpacked gem authlogic-2.1.3 in vendor/gems has no specification
file. Run ''rake gems:refresh_specs'' to fix this.
rake aborted!
undefined method `map'' for nil:NilClass
enivorment.rb
RAILS_GEM_VERSION =
2009 Mar 18
6
How to use a freshly updated Rails gem?
Hi there,
How do I make my app pick up the new Rails gem that I have just updated?
I have:
1. just updated rails from version 2.1.0 to version 2.3.2 (console:
"rails -v" -> "Rails 2.3.2")
2. in environment.rb set: "RAILS_GEM_VERSION = ''2.3.2'' unless defined?
RAILS_GEM_VERSION"
3. restarted the server
Result:
- The Console in Eclipse tells me
2009 Apr 14
3
Gem install Rails issue
Im trying to install rails gem on OSX 10.5.6, but when i use the gem
install rails command this message displays WARNING: Installing to
~/.gem since /usr/local/lib/ruby/gems/1.8 and
/usr/local/bin aren''t both writable.
Successfully installed rails-2.3.2
1 gem installed
How can I get my gems to install to /usr/local/lib/ruby/gems/1.8 or
/usr/local/bin which both are set up in my
2007 Jan 29
8
Cluster 3 mongrel servers residing in different machines (Windows)
Hi All,
Machine A: has Apache 2.2 doing load balancing, also has DB and 8
mongrel processes I''m using mongrel_cluster . Now, I want to run
Mongrels on Machine''s B and C (ie Cluster 3 Mongrels in three
different machines). Is this possible? If possible then, please
describe me the steps required (I''m using windows machines, and
already losdt one week :-( )
Best
2009 Feb 25
2
gem install mysql --> Error
Hi,
When I try to install "gem install mysql" it throwing error.
For your ref,
bash-2.05b$ gem install mysql --
--with-mysql-dir=/opt/etrade/p6/share/mysql5
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: could not find gem mysql locally or in a repository
bash-2.05b$ gem install mysql --
--with-mysql-config=/opt/etrade/p6/share/mysql5/bin/mysql_config
2009 Jan 25
0
Typo 5.2 for Rails 2.2 released
Hello,
We''re very pleased and proud to announce the release of Typo 5.2
"Helmut Newton" for Rails 2.2, the famous blogging engine, 4 months
after our last release.
Typo 5.2 is more than a simple port from Rails 2.0.2 to Rails 2.2,
it''s a major, deep, rewrite of the application. We''ve ditched lot of
code, aiming at stability and performance, dividing