similar to: FPDF set FONT_PATH

Displaying 20 results from an estimated 300 matches similar to: "FPDF set FONT_PATH"

2006 Jun 19
0
PDF::Writer VS Ruby FPDF
Hi list, I see almost all people here uses PDF::Writer for generating pdf documents with rails. I used it too at first, but am using both now and would like to see some advantages and shortfalls you came using each of these two packages. Here are my thoughts for now: PDF::Writer: - extensive documentation - writen using ruby conventions - easy to use - some bugs with embeding fonts prevent
2006 Jan 11
10
Recommend server for developing RoR on win
Hi all, can you recommend me which web server config to use for developing rails on windows machine. I tried webrick, which is good but it''s annoying because console window is in taskbar for every site running and it have to be started manually. Apache with CGI is to slow and using FastCGI on the other side brings me lot of problems, like randomly not working RoR sites. Any help is
2006 Mar 23
8
DRY principle - how to implement?
Hi all! I have ''send_status'' table which looks something like these: id code title 1 sent Sent 2 error Sending error 3 success Success Next I would like to associate some processed records with their ''send_status''. Is it better to use: 1) record.status_id = SendStatus.find(:one, :condition => "code=''sent''").id to
2006 Jun 02
3
Advice, why value_before_type_cast in FormHelper?
I am wondering why is in creating text fields with form_helper used value_before_type_cast instead of attribute value for field value? I set rails enviroment so date fields are in european format (dd.mm.yyyy) and would like to have same format in forms, but because of value_before_type_cast is called, form fields are filled with ''yyyy-mm-dd'' or timestamp integer, etc.
2006 Jun 21
5
module and cache/restarting server
Hello, It seems I need to restart webrick everytime I modify a module in order for my modifications to be taken into account. Is this normal and is there a workaround? Regards, -- ---------------------------------------------------------------------- Yannick Majoros http://www.inma.ucl.ac.be/~majoros Informaticien UCL/INMA-MEMA 4, avenue G. Lema?tre B-1348 Louvain-la-Neuve Tel:
2006 Feb 02
3
What is best way to show only records belonging to logged user?
Hi all, What is best way to show only records belonging to logged user? I understand that it is better to handle this in model and not controller. I am thinking of intercepting find methods in model and add clause something like "WHERE id_user = #{user_id}". I would like to hear if you would do it likewise and if yes is it better to hack find_by_sql() or find() method? thanks in
2006 Jul 26
7
RHTML in database?
Hi, is it possible to store RHTML templates or partials in database? thanks, Bojan Mihelac -- Bojan Mihelac Informatika Mihelac, Bojan Mihelac s.p. | www.informatikamihelac.com -> tools, scripts, tricks from our code lab: http://source.mihelac.org
2006 Mar 23
11
Contact page
Hi I have justed started using Rails. How do I create a contact page. By this I mean one with a contact form etc. Thanks -- Posted via http://www.ruby-forum.com/.
2006 Apr 03
0
FPDF and charset
Hi, I have a little question (that''s why I post ;) How I can use Fpdf Libraries and view accentued character (?, ?..) which is in a mysql table ? I have this problem with Windows (not with Ubuntu =) Thank you for your attention ;) Pierre Marchet pmt(at)tecsas.fr -- Posted via http://www.ruby-forum.com/.
2006 Jun 20
3
return unique rows with finders
I''m looking through the api for something like find(:all, :distinct => true) so that multiple instances of a row won''t be returned - is this possible? Thanks!
2006 Jan 26
2
Newbe Question: Character Encoding
I have to present german umlaute as "?" on my webpage. When writing the text within the view, everything is fine - the characters are presented correctly. When I declare variable within the controller (e.g. via flash or as a list of values for a listbox) the text is displayed with the umlaute replaced by strange characters. I assume I have to adjust the character encoding somewhere.
2006 Jun 12
2
Pdf::Witer question
Does anyone knows how to embed Type1 font with PDF::Writer? I read manual, tried everything but nothing seems to work (The font ''FontName'' contains a bad /BBox error on PDF). any help or hint would be really appreciated, Bojan Mihelac -- Bojan Mihelac Informatika Mihelac, Bojan Mihelac s.p. | www.informatikamihelac.com -> tools, scripts, tricks from our code lab:
2006 Jun 20
1
Possible to check if form field is required?
Hi list, is it possible to check if form field will be required when form is submitted (through validates_presence_of or some other validates_* method)? I could do this manually but it doesn''t seems to me very DRY. For example, I would like to be able to dynamically add asterisk with some helper method if city is required here: City*: <%= text_field
2006 Jul 21
1
Capistrano before and after tasks
I try to extend db:test:copy_structure task to poulate test database with some existing data everytime i run it. It seems that "after_" task is not called as should be: > namespace :db do > namespace :test do > task :after_clone_structure do > puts "after_clone_structure_to_test" > end > end > end Anyone know what I am doing wrong?
2006 Jan 09
3
FCGI and Apache2 on win performance problem
Hi all, I am having problems with FCGI and Apache2 on windows. The error I often receive is 500 error code response with logs listed down. I successfully use Webrick server and CGI (very slow). I had configured apache as is described in these document: http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-on-windows. Any suggestions? Logs: > Errno::E232 (The pipe is being
2006 Feb 11
4
Timesheet application for Rails
Hi all, I am looking for some time tracking software for our small company. Does anyone knows if such project on rails exists? I need simple functionality such as recording spent time for employees and managing projects or tasks. Ideally, it would be possible to integrate it into Instiki and to some existing database. There are some other solutions, but it seems to me that RoR would be ideal
2006 Jun 20
4
Invoking MouseOver using link_to tag ?
Hi, How can we trigger a JavaScript built in function from a <%= link_to %> ie. i have the below statement in my view. I want to invoke a JavaScript function on "MouseOver" of this below text (''TestingMouseOverEvents''). <%= link_to "TestingMouseOverEvents" , :controller => "login", :action => "logout"%> Note: The
2006 Jun 29
2
Shared or VPS/dedicated hosting
Hi, I was wander if anyone can tell based on self expirience what would be limitations for rails app regard shared hosting. For example on PHP/MySql db driven app on shared hosting can handle 1000 users a day without problems. I know there are many factors involved but would like to hear your thoughts, when would you upgrade and if you would deploy rails app on shared hosting at all. thanks
2006 Jul 10
2
Formatting of dates in a text_field
When displaying a date field using a text_field object, is it possible to specify how the date will be formatted? <%= text_field ''item'', ''created_at'', {:class=>"text-input", :size=>18, :disabled=> true} produces 2006-07-07 12:00:00 I would like to reformat it to something like 07/07/2006 12:00pm -- Posted via
2006 Jun 15
4
parse only seem to understand US date format
I''ve tried Time.parse() and DateTime.parse() but they interpret the date as US format. Is there any way to tell it to interpret as dd/mm/yyyy? -- Posted via http://www.ruby-forum.com/.