similar to: gem and rails3: LoadError

Displaying 20 results from an estimated 4000 matches similar to: "gem and rails3: LoadError"

2010 Dec 01
1
Prawn : undefined method `make_table'
require ''prawn'' require ''prawn/core'' require ''prawn/layout'' Prawn::Document.new do |pdf| subtable = pdf.make_table([[ "foo", "bar" ], [ "baz", "bax" ]], :column_widths => [ 50, 50 ]) { column(0).background_color = "808080" cells.borders = []
2011 Nov 02
3
form_for text_field
I have a form ... html ..... <% form_for @person do |f| %> ... html ..... <%= f.text_field :last_name %> ... html ..... <% end %> When last_name field of @person doesn''t contains french special symbols like ''é'', all characters are displayed in the input control (f.text_field :last_name ). Else only symbols before french special symbol are
2012 Mar 20
9
Rails 3 generate pdf
Dear All, i am developing an application with rails 3, and now i need to generate a pdf file,i search a lot, and try a lot ,such as prawn ,PDFkit and so on, it seems that prawn is no response in rails3, and when i use PDFKit, it asked me to install wkhtmltopdf first, i try to install this,but failed, anyone can help me ? Thanks very much. Daisy -- Posted via http://www.ruby-forum.com/. --
2010 Jan 05
6
thin server claims I don't have correct rails gem installed
Hi everyone, I need some insight into a problem I just started having. I''m running ruby 1.8.6 on an ubuntu box with the following gems installed: $ sudo gem list --local *** LOCAL GEMS *** actionmailer (2.3.5, 2.3.4, 2.3.2, 2.2.2) actionpack (2.3.5, 2.3.4, 2.3.2, 2.2.2) activerecord (2.3.5, 2.3.4, 2.3.2, 2.2.2) activeresource (2.3.5, 2.3.4, 2.3.2, 2.2.2) activesupport (2.3.5, 2.3.4,
2011 Jan 13
1
10.04 Ubuntu
Hi, Chauk-Mean and all - I have just ported everything to 10.04 ubuntu, and I am pleased to note that I was able to use prepackaged stuff almost everywhere. Yes, it was painful before I figured it out. :) I used apt-get to install ruby-1.8.7, all the wx libraries (including the dev header packages) I uninstalled the debian rubygems package completely and installed rubygems-1.4.1 from the
2010 Mar 17
3
rails+prawnto: setting :type to :prawn in a #render_to_string call not working
Hello, my question is rails related though it is also somewhat specific to the prawnto plugin (installed latest version as of 2010-03-15). I would ask on a prawnto forum/list if I knew where one was. Anyhow, I''m using rails 2.3.5 (with ruby 1.8.6 patchlevel 111) in an app that is successfully using the prawnto gem (with the prawn gem version 0.7.1). I''ve got a a
2009 Mar 23
6
PDFs prawn gem freeze into the app...
I was having great success with creating PDFs with prawn, I followed Ryan Bates latest screencast. All good. Trouble is when i come to deploy the app on my webhost I ran into trouble. Rails 2.3 app. I did, "sudo rake gem unpack prawn" to freeze it in. I put the app on my webhost but it won''t start, some error saying it can''t find prawn. Any ideas? (summary: works
2008 Oct 26
2
use Prawn to generate pdf
Hello: when i use Prawn to generate pdf file for download, i got a blank pdf file, can someone tell me why? require ''prawn'' class DownloadController < ApplicationController def download_pdf send_data(generate_pdf, :filename => ''test.pdf'', :type => ''application/pdf'') end private def generate_pdf
2010 Sep 02
5
Re: Exclude ActiveRecord in Rails3
What''s the best way to exclude ActiveRecord in Rails3? In Rails2, one could just do: *config.frameworks -= [ :active_record ]* in the configuration block in environment.rb. Is it possible in Rails3? Thanks. Anuj -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to
2011 May 25
1
can't load hpricot gem in rails 3
This is in windows .. So from irb, I can load hpricot ok. (ruby 1.8.7) C:\Users\Laurence\rails-play\plug-test>irb irb(main):001:0> require ''hpricot'' LoadError: no such file to load -- hpricot from (irb):1:in `require'' from (irb):1 irb(main):002:0> require ''rubygems'' => true irb(main):003:0> require
2009 Jul 20
9
rake error
When I run rake test:units I get this error: 292 tests, 350 assertions, 2 failures, 13 errors rake aborted! Command failed with status (1): [/usr/local/bin/ruby -I"lib:test" "/ usr/loc...] This error just showed up yesterday --- I have no idea how I caused it. Here is my gem list in case that helps: actionmailer (2.3.2, 2.2.2) actionpack (2.3.2, 2.2.2) activerecord (2.3.2, 2.2.2)
2010 Dec 24
0
keep getting "undefined method `map' for nil:NilClass (NoMethodError) " in new server
hi guys, I have a new development server (ubuntu 10). I have done the following (the versions match my existing development machine which works fine): 1. installed ruby 1.9.1p378 2. installed ruby gems 1.3.7 3. installed rails 2.3.8 (used "gem install rails -v 2.3.8") 4. manually installed my other gems including sphinx and thinking sphinx with "gem install ..." 5. ran
2012 May 22
4
Creating formatted PDFs
Hello, I''m writing a mail-merge application with Ruby on Rails. I have one user-created template, wich he creates with a CKEditor (in HTML). I have a list of members, and in the "mailings" controller I mix the template with the members data to create a PDF with a letter to every member. This is all working correctly... Except one part: I don''t know how to render
2010 Jun 30
1
Prawn gem: How to create the .pdf from an *existing* file
Hi there, Can anybody show me (maybe copy/paste a simple code example) how to create the .pdf file from an existing (.xls) file, using the Prawn gem? Basically, I''d need the command that takes an existing (.xls) file to save it as a .pdf, afterwards. (I''m asking because the Prawn documentation at http://prawn.majesticseacreature.com/docs/ seems to be gone since quite a while -
2010 Aug 23
7
Sharing sessions between a rails3 app and a rails2 app. Rails 2 app crashes.
Hey all. I have two apps. One is a rails3 app and the other is a rails 2 app. Using proxying I am routing actions in the myapp.com/foo to the rails2 app. It almost works! I can set a session variable and a cookie variable on the first app (myapp.com) and then read them on the second app (myapp.com/foo). It only works the first time though. If I go back to myapp.com and then revisit
2010 Jan 15
2
Generating views in pdf, rtf, or doc format
I have a requirement to generate views (list and show views, including data and uploaded images) into a format that can be saved and/or emailed. I''m looking for opinions on the easiest way to achieve this. I''ve researched the use of both PDF::Writer and Prawn, and it seems that to re-generate my views in pdf format will require a lot of work. Is there an easier way using .rtf
2011 Jan 12
14
WickedPDF vs PDFKit vs. Prawn, etc.
Thoughts on using WickedPDF vs PDFKit vs. Prawn or others for developing forms with dynamic content? TIA, Garrett Lancaster -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2012 Feb 22
6
PDF Creation Best Practise
Hi there, I''m looking for a powerful pdf creation libary. I already tried: prawn - Nice handling but way too slow when lots of tables are involved PDFKit - too slow Actually I''m trying prince with xml input. It''s pretty fast but I don''t like the page-break control. I need a libary which can create pdf''s with up to 90 pages with lots of nested
2011 Dec 17
7
How does bundler know whether Gemfile has changed?
I am trying to understand how bundler works. Looking at the manual [1] it says "If a Gemfile.lock does exist, and you have not updated your Gemfile(5), bundler will fetch all remote sources, but use the dependencies specified in the Gemfile.lock instead of resolving dependencies." The question is how does it know whether Gemfile has been updated? I expected to find something in
2007 Jul 23
1
readline (LoadError)
hi, i''m a noob in ror, today i bought a book to learn ror. i do everthing that stand''s in this book, and the shit does''t work! i use Aptana IDE with RadRails the problem is: Loading development environment. /usr/lib/ruby/1.8/irb/completion.rb:10:in `require'': No such file to load -- readline (LoadError) from /usr/lib/ruby/1.8/irb/completion.rb:10 from