similar to: readline (LoadError)

Displaying 20 results from an estimated 3000 matches similar to: "readline (LoadError)"

2007 Apr 19
4
render_to_string in a model ?
I have a batch job that will call script/runner, I would like in this call to create html formated email and save it to the database. This is easy enough in a controller with yournewhost.email = render_to_string :action => "email_newhost_ready", :layout => false But render_to_string is only available in controller action pack, is there a easy way to render_to_string in a Model? Or
2007 Jul 21
3
manging rescues
What''s the recommended way to catch errors like this: NoMethodError in Register#confirm Showing app/views/register/confirm.rhtml where line #4 raised: undefined method `namen'' for nil:NilClass I get this error when someone does somethinh like: http://.........../register/confirm?email=jkdsfadslkjflksd If I make: remail = params[:email] @user = Request.find(:first,
2007 Jul 07
6
Help in upgrading from 1.1.6 to 1.2.3
Hi, I was developing a rails app with version 1.1.6 that just worked fine. I decided to upgrade to 1.2.3 and then, I keep getting that horrible message: "Application error Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html" Now, before starting script/server I modiffied config/environment.rb and
2007 Jun 27
5
Regexp not matched
Sorry, meant to post this in the rails forum. Anyways, how would I write a rescue method to recover from a failed regexp parsing with error "regexp not matched" -Thanks -- 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
2007 Jul 10
3
need to add XTHML class attribute, link_to's html options?
I need to add a class attribute to the elements generated by link_to for my CSS to style the links. How can I do that? <%= link_to "Artworks", :controller => "artwork", :action => "list" %> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2007 Jun 13
2
Delete the fixtures on a functionnal test
Hi, Since couple a day, I block with the delete of my fixtures in my functionnals test. In my controller, I need test a redirect if there are no value. But i load my fixtures in start of my test and in a specific test I want delete all. Only in this method, not in other method. In API, I discover the method delete_existing_fixtures, who seem the good practice, but I can''t find how use
2007 Jul 06
3
assert_equal - problems returning value from controller
Hi, I have the following assert_equal that is returning false. @q seems to be returning niil, but is set in the controller, how can I get hold of this value in my tests? assert_equal ''derby'', @q Thanks Mark -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2007 Jul 14
3
observe_field, does this generate HTML?
I don''t have Rails installed at the moment, I''d like to check myself, but it''s just a simple curiosity. observe_field fits into replacement tags <%= %>, which caught my attention because as far as I know it''s just javascript observing a field and should not stick anything into HTML. Is <%= merely used as an enabling method, or will there actually be
2008 Dec 03
2
Rails functional test how to assert json result?
As title, I want to have my functional test check results from a json render result, how can I achieve this? --~--~---------~--~----~------------~-------~--~----~ 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
2007 Jul 19
8
Where do I put code for my own types?
Sorry for all the questions today... Beyond the obvious things--models, controllers, helpers, and other framework-related types--where should I put the code for my own types? For example, I was thinking of writing my own AJAX-friendly paginator, but I don''t know where to put the code for that sort of thing. I would prefer to keep things object-oriented, so I would rather do a lot of
2009 Nov 17
0
No such file or directory - /usr/local/lib/ruby/1.8/sparc-solaris2.10/readline.so (LoadError)
I am trying to run console on a Solaris server and I get this error: -bash-3.00$ script/console Loading development environment (Rails 2.3.4) /usr/local/lib/ruby/1.8/sparc-solaris2.10/readline.so: ld.so.1: ruby: fatal: libedit.so.0: open failed: No such file or directory - /usr/ local/lib/ruby/1.8/sparc-solaris2.10/readline.so (LoadError) from /usr/local/lib/ruby/1.8/irb/completion.rb:10
2006 Jul 26
0
LoadError: no such file to load
Suddenly I noticed that I can''t require installed gems from irb or ./script/console. Any ideas? irb(main):001:0> require ''RMagick'' LoadError: no such file to load -- RMagick from (irb):1:in `require'' from (irb):1 irb(main):002:0> require ''mysql'' LoadError: no such file to load -- mysql from (irb):2:in
2009 Mar 25
0
RMagick LoadError
I installed RMagick 2.9.1 and tried to test RMagick code below. irb -rubygems -r RMagick But I got an error like below. /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.9.1/lib/RMagick2.so: libMagickCore.so.2: cannot open shared object file: No such file or directory - /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.9.1/lib/RMagick2.so (LoadError) from
2006 Jun 05
1
script/console LoadError - ''no such file to load''
Hello, When I enter the command "ruby script/console", instead of an irb session beginning, I get the following error: [code] c:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in ''require__'': No such file to load -- ./script/../config/../config/environment (LoadError) [/code] I''m a little new to Rails, but it appears to me that the path to the
2007 Dec 13
2
no such file to load — ubygems (LoadError)
All of a sudden, i''m getting this error when trying to launch the console - no such file to load — ubygems (LoadError) I''m using 1.2.3 as my base rails install and i also get the same problem in a project frozen to 1.1.6. I saw a blog post at http://wharsojo.wordpress.com/2007/05/1 … loaderror/ which recommended removing the RUBYOPT variable from my (windows) environment.
2007 Sep 28
2
RoR uses something rather than erb or eRuby?
it seems that RoR doesn''t use erb or eRuby to generate its output for rhtml? the program erb and the description of eRuby at http://www.eruby.info both said that <% print "foo bar" %> or <% puts "hello" %> will be placed into the output... but currently for RoR, it won''t... only <%= expr %> is doing it and it cannot be print or
2006 Oct 05
0
script/console - no such file to load -- readline
Hi there, I just set up ruby and rails and now whenever I run script/console I get this error: Orenad:~/Sway/Projects/mi7/trunk/mi7 dave$ ruby script/console 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
2005 Nov 19
0
Missed readline on mac os x? [HELP]
Hi, I installed ruby 1.8.2 without problem, using the binary provided on the ruby on rails site for Mac Os X All works fine, but ruby cannot find the readline library: [0:Documents/workspace/manhattan> ruby script/console Loading development environment. /usr/lib/ruby/1.8/irb/completion.rb:10:in `require'': No such file to load -- readline (LoadError) from
2001 Nov 08
4
win2k + >2GB files problem
hi! I have a problem with rsync (current CVS version), running on a win2k machine (rsync compiled using Cygwin). c:\rsync>rsync --version rsync version 2.4.6dev protocol version 24 Copyright (C) 1996-2001 by Andrew Tridgell, Paul Mackerras and others Capabilities: 64-bit files, socketpairs, hard links, symlinks It can DOWNload >2gb files from my linux box (with rsync reporting negative
2007 Jun 03
1
postgres gem -- LoadError
I''m at a loss to explain why the postgres gem will not work on my new server. I''ve gotten it working on several other servers in the past. The major difference between then and now is that I''m using a newer version of PostgreSQL. 8.x as opposed to 7.x. === Server setup OS: Fedora Core 6 (Commands shown with "$" are performed as the same user that mongrel