similar to: RubyInline and load problem with rails

Displaying 20 results from an estimated 20000 matches similar to: "RubyInline and load problem with rails"

2006 Sep 19
0
worker threads written in rubyinline
Hey Ezra, I asked this on ruby-talk, but probably you missed it. I am already using Backgroundrb for several other stuff. But i am curious, that how it will work with rubyinline? Ruby threads, should handle it alright..theoretically(since backgroundrb uses ruby threads) But, i would just ask opinions of Ezra on this. Because i feel, stuff at my end needs some real optimization. These worker
2013 Jun 09
2
Minitest mock or stub methods
Hi I''m building a small library to use in my Rails app which interacts with a 3rd party API. It fetches artists and tracks. So I have: lib/my_lib.rb lib/my_lib/artist.rb lib/my_lib/track.rb To get an artist I do artist = MyLib::Artist.find("Oasis") Which returns an instance of Artist if it finds (via 3rd party API) it or nil otherwise. Then I can call artist.tracks which
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''
2007 May 07
1
attachment_fu seems to be searching the wrong location for my images
I just installed attachment_fu and for some reason, it seems to be looking in the wrong location for my images. I have a Product model that belongs to a photo model. the photo model has the attachment_fu installed and configured like so: class Photo < ActiveRecord::Base has_attachment :content_type => :image, #Allow standard image formats :path_prefix
2007 May 25
0
deadlock issue: 1.8.6/fastthread/memcached-client/mongrel
Hi all, I''m getting a strange, intermittent Thread deadlock in production: deadlock 0x2a988d7008: sleep:F(3) - /opt/ruby/default/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:723 CPU usage spikes to a full core and Apache 502''s on requests that got handed to that particular listener each time. I tried attaching with gdb, and gdb twisted itself into a knot. Anyone have
2006 Jan 23
2
del.icio.us-like output
I''m trying to build a page similar to a delicious page that is a listing of your bookmarks in this format: 1. Querying serialized data in ActiveRecord<http://www.karmiccoding.com/articles/2005/11/29/querying-serialized-data-in-activerecord> Hack to search serialized fields to rails <http://del.icio.us/djsodom/rails> ... and 4 other
2008 May 16
0
attachment_fu and/or rmagick on osx -- weird error
One of our developers is getting a weird error from attachment_fu and/or rmagick on OSX. And even weirder because he''s used attachment_fu and rmagick on other projects without difficulty. This all works fine on debian/ubuntu. See the stack trace below. Any suggestions? Btw, the code that''s blowing up is retrieving the attachment_fu info. The presence of image_science in
2006 Feb 08
8
Riding the Rails to acquisition
Guys, I think many of us on this list would consider ourselves entrepreneurs. I''m willing to bet at least 40% of you are working on ideas for startups...hoping that you just might have the next Flickr, Oddpost, del.icio.us, etc. Me too, for what it''s worth. Rails is good for this, in that it enables you to move quickly (after the learning curve) and it''s
2007 Aug 27
3
Testing c code with rspec?
Hey all, Has any one ever tested or try to test c code with rspec? I am using system calls to my compiled c program and testing against the standard output but I would like to get a lot more granular than this. I have experimented with using RubyInline to test individual functions and that works on functions that are not calling other c functions. I have some other ideas on how to do this
2009 Mar 13
1
Problem saving nested attributes for has_many associations (Rails 2.3 RC2 and Edge)
I''ve tested this on both 2.3 RC2 and Edge. This pastie contains model, helper and view: http://pastie.org/415742 When I save a vocabulary - its terms don''t save. I''m fairly sure it worked in RC1. Would appreciate any insight. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on
2006 Mar 17
0
Installed Gems on godaddy.com
Hi, is there a core list of gems that one needs to install in a production environment? Anyways, here''s a current list of installed gems on godaddy.com: Gems *actionmailer 1.0.1* [www] <http://www.rubyonrails.org/> - depends on actionpack <http://www.situationman.com/_h_admin_/gems.html#actionpack>. Service layer for easy email delivery and testing. *actionmailer 1.1.5*
2006 Jul 18
0
del.icio.us links in the layout - HELP
I''m trying to get my del.icio.us links to appear in the layout, so it''s throughout the entire application. Here''s the code I have: #controller - application.rb? def get_authenticated(path, http) request = Net::HTTP::Get.new(path) request.basic_auth ''user'', ''pass'' response = http.request(request) response.value
2013 Jan 15
4
Ruby e Grafos
Olá sou Luiz Danin, novo neste forum, e necessito de informações para meu tcc. Gostaria de saber se há um api Ruby para desenhar grafos de forma iterativa movimentando os mesmos. -- Posted via http://www.ruby-forum.com/. -- 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
2012 Feb 14
4
What I'm doing wrong, has_and_belong_to_many
Hello, I''m trying to insert into my migrate but when I try on rails console this error shows: 1.9.3-p0 :001 > group = Group.new => #<Group id: nil, name: nil, description: nil, created_at: nil, updated_at: nil> 1.9.3-p0 :002 > group.name = "Group Name" => "Group Name" 1.9.3-p0 :003 > group.description = "Description" =>
2008 Aug 05
1
Rails controller specs and private helper methods
Hello guys, Been a while since last time I worked with Rails so is taking me a while get back to full speed. For a specific scenario I''m facing right now, I required to implement a generic REST controller that accept any kind of resource and provide a @collection or @record to work with. I take from the route requirements the name of the resource
2009 May 19
1
[RSpec, Rails] POST create action spec and before_filter
2009-05-18 21:40, Florent Florent: > I have this controller: http://pastie.org/482270 > I wrote this spec: http://pastie.org/482273 There are a few spots which draw my attention. At spec line 4 you create a mock Page with #save that always fails (succesfull save returns true). Is that intentional? At line 9 you .and_return a value from a variable you don''t set anywhere.
2005 Sep 16
4
Autocompleter handling multiple completes
Has anyone extended the Autocompleter to do multiple auto-completes in a single input field? I''m looking to achieve similar functionality to the del.icio.us <http://del.icio.us> post page which allows multiple auto-completes of tag names in the tags input field. cheers, Rob -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Oct 31
6
Autotest busted with Rspec/Rails trunk
Just upgraded to latest rails and rspec builds and my autotest doesnt work undefined method `before'' for Spec::Rails::DSL::RailsExample:Class (NoMethodError) Here''s the full trace: http://pastie.caboo.se/112754 Any ideas? -- Posted via http://www.ruby-forum.com/.
2007 Oct 05
2
Rails, rSpec edge problems
Hi, Does the Story Runner work on edge rails? I thought that is what the example app was using but I am on the latest Rails and latest rSpec revisions and I am having problems. When I call ''render_template'' in a story I get the following: NoMethodError: undefined method `render_template'' for #<ActionController::Integration::Session:0x327d974> Do I need to
2007 May 16
1
Rails, Mongrel and Rmagick
i have a rails app with a form that allows uploading an image file. I take the image file and read it into rmagick to verify that it''s an image. For some reason I can''t catch an exception thrown by rmagick inside the app. After an invalid image file is uploaded the process just hangs. I have to kill mongrel and restart to use the app again. img =