Displaying 20 results from an estimated 300 matches similar to: "WickedPDF - wrong number of arguments"
2006 Jan 06
6
HABTM problem not saving all associations
Hello all,
I have an Order object that has and belongs to many Products and has
and belongs to many Loan Types. This is so I can select multiples of
each in my order entry screen via checkbox groups.
I''m having some trouble with saving multiple HABTM associations for a
single model object; only the first HABTM association declared in the
model will save during the initial @order.save
2008 Jun 05
3
how to specify controller '/admin/foo'
WeBrick handles the link correctly on development, but apache in
production does not:
<%= link_to "Orders", :controller => ''/admin/orders'', :action => ''index'' %>
The controller lives in ./app/controllers/admin/orders_controller.rb
From the production log, apache is looking for the "orders" action in
2012 Aug 01
1
Strange error: uninitialized constant Barby::Code128A on Heroku server?
I can`t figure out why on heroku server my app crashed. On local server all
seems works.
2012-08-01T17:14:50+00:00 app[web.1]: NameError (uninitialized constant Barby::Code128A):
2012-08-01T17:14:50+00:00 app[web.1]: app/models/order.rb:102:in `generate_shipment''
2012-08-01T17:14:50+00:00 app[web.1]: app/models/order.rb:60:in `generate_items''
2012-08-01T17:14:50+00:00
2013 Jan 31
1
WickedPdf error in production
Hello everyone,
I am using rails -v 3.2.8.
I am using wickedpdf to generate pdf. Its working well in my local machine.
But its not working in production server.
ompleted 500 Internal Server Error in 4443ms
RuntimeError (Failed to execute:
"/var/www/apps/staging/shared/bundle/ruby/1.9.1/bin/wkhtmltopdf" -q
"file:///tmp/wicked_pdf_5855_0.html"
2010 Nov 19
0
Wickedpdf
Im using this plugin to convert a html page into a pdf
https://github.com/mileszs/wicked_pdf
It works great but if i have a file that renders lots of partials then
i need to make copies of them with a view type of .pdf.
So for show.html.erb i need to make a show.pdf.erb, that makes sense.
But if the show file has lots of partials then i need to make copies
of them which i dont need to as i wan
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
2010 Feb 22
9
Couldn't find Order with ID=pending_orders
I have a Controller named Orders which has a pending_orders method
which is expected to fetch some records from the database.
If i dont write a route for this method, I get the following error
when i call this method.
Couldn''t find Order with ID=pending_orders
I am using rails 2.3.5, in the previous versions i use to get this
I am not getting whether its new version requirement...
Help
2012 Sep 11
10
wickedpdf
Hi all i''m trying to generate pdf and i got this error
Location of wkhtmltopdf unknown and i also get
Bad wkhtmltopdf''s path
gpa/vendor/plugins/wicked_pdf/lib/wicked_pdf.rb:26:in `initialize''
/EDWARD/_gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:53:in `new''
/EDWARD/gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:53:in `make_pdf''
2008 Apr 04
0
named_scope and ordering
Hi,
this is a general design question and I liked to see how other people
handle the following situation: Before named_scope I wrote custom
finders for my model classes. Something like
# order.rb
class Order < ActiveRecord::Base
class << self
def find_all_marked
find(:all, :conditions => {:marked => 1}, :order => ''name ASC'')
end
end
end
Now
2014 Mar 01
0
Rails controller problems
1. Users_Controller CRUD expects param[:id] to create User instance. With
Orders_Controller, I'd like to retrieve a list of users who have ordered. I
know Orders_Controller expects param[:id] to be for creating Order
instance. So does this mean if I want to retrieve a list of users who have
ordered, I should create a method called 'get_orders' in Users_Controller?
2. Can
2014 Jun 20
0
Errno::ECONNREFUSED (Connection refused - connect(2))
I am reading " Agile Web Developement with rails". I am using Ruby 1.9.3
and Rails 3.2.16.
I can able to run application locally But application not working on
heroku. I deployed my application successfully on heroku.
When I run rake test, there is no failure.
When I click on place order button i got error like:
>We're sorry, but something went wrong.
I have attached heroku
2008 Jun 04
0
routers are handled incorrectly on production
Has anyone found their routes are handled differently on production?
#works fine
http://local:3000/admin/orders/new
#returns 404.html
http://domain.com/admin/orders/new
production.log:
Processing AdminController#orders (for 67.112.120.159 at 2008-06-04
09:06:11) [GET]
Session ID: 2345fb73da6d2f975bbbfc1dc4dd5ce5
Parameters: {"action"=>"orders",
2010 Apr 14
1
Rails does not display form error message on a custom method
Hi all,
I''ve created a custom method called checkout in my app. I create an
order (which is done my adding products to my "cart"), assign it to my
client, and then I head to my checkout screen where I confirm the items
and enter their customer order number and complete the order (submit).
Everything works great except that it doesn''t display error messages.
2012 Jul 23
4
uninitialized constant ActionController::Flash::FlashHash [NameError])
My application, a very simple general ledger, that worked very well until
June 26 does not work any longer. It is used under Ubuntu 12.04 and I
believe there was a Ruby update after that.
What happens?
When I try to start the appIication I get the following output in my web
browser:
ActionDispatch::Session::SessionRestoreError
Session contains objects whose class definition isn''t
2013 Oct 29
3
rake db:migrate debacle
Hi there - I''m a ruby newbie and am stuck on the Getting Started with Rails
app. See output below. Problem arose when I ran the rake db:migrate
command. I also tried the ''rake db:migrate RAILS_ENV=development'' command
which may be obvious. Any ideas on how to fix this?
Many thanks!!
$ ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin10.8.0]
2012 Oct 01
1
active_model_serializers, more than one level deep of associations, specifying serializers per association
I am assuming this an appropriate place to discuss this, but if it isn''t my
apologies- just let me know. Just a Rails 4-ish thing.
Am attempting to pull AMS (active_model_serializers), strong_parameters,
and the "permitter" strategy that Adam Hawkins is using:
http://broadcastingadam.com/2012/07/parameter_authorization_in_rails_apis/
Code so far is here (in the
2012 Sep 04
2
How to get contact list from yahoo in rails using OAuth
I can successfully get the contacts from google using OAuth gem in rails.
my gmail configuration is :
:google=>{
:key=>"***",
:secret=>"***",
:expose => true,
:scope=>"https://www.google.com/m8/feeds/"
}
now i want to get contact from yahoo and hot mail. How to get that contact
I have given following configuration in my
2011 Jul 14
1
rails 3.0.9 ArgumentError (redundant UTF-8 sequence):
Hi guys,
I have a simple controller
def gmap
@intentsearches = Intentsearch.all
logger.info @intentsearches
respond_to do |format|
format.html {render :gmap}
format.xml {render :xml => @intentsearches }
format.json { render :json => @intentsearches }
end
end
and want a json response, but i do get the following error
Completed 500 Internal
2010 Aug 13
11
Link to remote and the equivalent in Rails 3
Hi
WOW! Is Rails 3 another interesting learning curve. Just when I think
I have a general working knowledge of Rails 2 ... things change.
I''m trying to replicate the following in Rails 3:
<%= link_to_remote image_tag("creditcard.png", :border => 0), :url =>
{:action => :make_payment, :type => "Credit", :id =>
@appt.id },
2012 Mar 01
1
help stylesheet_link_tag
I was reading the book "Agile Web Development with Rails 4th Edition".
In Chapter 11, Iteration C2: Adding a Page Layout
1 <!DOCTYPE html>
- <html>
- <head>
- <title>Pragprog Books Online Store</title>
5 <%= stylesheet_link_tag "scaffold" %>
- <%= stylesheet_link_tag "depot", :media => "all" %>
- <%=