similar to: Connecting to multiple databases

Displaying 20 results from an estimated 1000 matches similar to: "Connecting to multiple databases"

2006 Mar 22
9
render partial from withit mail template
Hi, I''m trying to include a partial in an email template but it throws me this: undefined method `controller_path'' for SupportMailer:Class Extracted source (around line #12): 11: 12: <%= render :partial => ''footer'' %> I guess email views are a little different from normal ones as they don''t seem to have a access to a proper controller (?)
2006 Mar 02
6
Lighttpd and fastcgi problems...
Hi, I''m having difficulty getting ruby running via Lighttpd and fastcgi. My lighttpd.conf reads: server.port = 81 server.pid-file = "/tmp/test_lighttpd.pid" server.modules = ( "mod_redirect", "mod_access", "mod_fastcgi", "mod_accesslog", "mod_simple_vhost" ) server.document-root = "/tmp/mis/public"
2007 Jan 31
7
GET request works via curl, crashes from Java
[That subject line is of course a severe truncation!] I''ve got a REST request that works fine from curl but causes a mongrel error when executed from a Java program. This all worked with fine with rails 1.1.6 and webrick. I''m trying to update the app to rails 1.2.1 (I need working around_filters). I''m running in development mode with mongrel 1.01 running on macosx
2006 Apr 11
2
AR class names
hello all, quick question: how can I find out if a given string matches the name of an ActiveRecord derived class? thanks in advance alan
2006 Mar 07
13
hosting multiple rails apps in one webroot?
It''s actually REALLY easy with lighttpd on linux. Two apps... Myserver.com/code/ => /apps/code/ Myserver.com/test/ +> /apps/test/ Each application needs this in the environment.rb /apps/code/config/environment.rb ActionController::AbstractRequest.relative_url_root = "/code" /apps/test/config/environment.rb ActionController::AbstractRequest.relative_url_root
2006 Mar 21
4
Broken config/lighttpd.conf? (in EdgeRails)
I''m using Mac OS X, I installed Ruby/Rails/lighttpd/etc via the instructions from hivelogic. I think I''ve found a bug with EdgeRails, but I''m not sure how to submit it (and maybe I''m doing something wrong and someone can just point me in the right direction). Anyway I thought I''d report it just in case it is a bug. I''ve downloaded
2007 May 08
2
Extending SuperRedCloth
Fellows of the cloth -- I''m writing code that subclasses RedCloth and emits styled text that is not HTML. For example, I''m going to be emitting RTF and other formats from Textile or Markdown. I''ve got it working quite well with plainclothed RedCloth, but I can''t seem to override any of the methods in SuperRedCloth. Here''s a sample:
2007 Mar 24
3
Patch for superredcloth to enable textile table headers
SuperRedCloth v1.160 and svn rev 163 don''t work the textile commands that specify table headers instead of table data. Here''s a simple test: require ''superredcloth'' w = "|_. a|_. b|_. c|\n|1|2|3|" h = SuperRedCloth.new(w).to_html puts h <table> <tr> <td>_. a</td>
2006 Mar 28
8
Large Database with lots of tables
Hello all, I am a rails nuby and I am evaluating using Rails for a new web application. The application will have a large number of tables (>70) that will basically mimic a large collection of paper forms that user would otherwise have to fill out. From what I have read on rails thus far it seems I would have to create a lot of models and form templates. Is this common and if so does
2006 Mar 06
11
Capistrano setup fails
I can''t get past the setup step in Capistrano. I know the paths are correct and I''m using zsh locally (bash on remote), so the shell shouldn''t be a problem. It never asks for the SSH password, even. Any help you could give would be greatly appreciated. Thanks. Kenneth -- => the blog from beyond <= => www.eyeheartzombies.com <=
2007 Dec 22
12
error when installing on jruby (fastthread dependency)
I''m running jruby trunk which has integrated rubygems 1.0.0 and when I try and install mongrel with gem it blows up when the fastthread dependency tries to do a native compilation. I couldn''t find a copy of the gemspec in the svn checkout but looking at the one installed when gem installing mongrel didn''t show any platform differentiation. There is platform
2007 Nov 13
16
mongrel startup fails now: already initialized constant OPTIONS
I updated to ruby 1.8.6p111 last night and updated some gems and now mongrel doesn''t work: MacOS 10.4.10 $ ruby --version ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-darwin8.10.1] $ gem list rails *** LOCAL GEMS *** rails (1.2.5, 1.2.4, 1.2.3, 1.2.2, 1.2.1, 1.2.0, 1.1.6) Here''s a simple test: $ rails test5 create ... $ cd test5 $ script/server => Booting
2011 Jan 13
9
spurious <li> generated when list followed by 3
RedCloth master generates a spurios <li> element when a numbered or undumbered list is followed by three or more newlines. RedCloth.new("* one\n* two\n* three \n\n\n").to_html #=> "<ul>\n\t<li>one</li>\n\t<li>two</li>\n\t<li>three</li>\n</ul>\n<li>" # note extra trailing <li> outside <ul> A colleague
2009 Jul 07
2
paperclip unit testing
Hi, Rails 2.3.2, paperclip 2.2.9.2 How can I unit test my model that has a paperclip attachment? I add to my model: --- CODE START --- has_attached_file :image, :default_url => '''' attr_protected :image_file_name, :image_content_type, :image_image_size --- CODE END --- Than I type a UNIT test: --- CODE START --- foo=FooModel.new({:image =>
2006 Mar 29
38
Poll: Which distro do you use for Rails/Ruby development?
Good afternoon, I''ve two quick questions for the Ruby/Rails community. 1) Do you use Linux for Ruby or Rails development? 2) If you use Linux, which distro do you normally use to develop? Thank you for your input. :-) -- Posted via http://www.ruby-forum.com/.
2007 Nov 18
18
mongrel and fastthread on ruby 1.9?
Is anybody testing mongrel on ruby 1.9. I just tried installing mongrel on trunk 1.9 and trunk rubygems and got this error compiling fastthread: /Users/stephen/dev/ruby/1.9_trunk/bin/ruby extconf.rb install mongrel --no-rdoc creating Makefile make gcc -I. -I/Users/stephen/dev/ruby/1.9_trunk/include/ruby-1.9/i686-darwin8.10.1 -I/Users/stephen/dev/ruby/1.9_trunk/include/ruby-1.9 -I.
2006 May 26
1
cannonical open source rails apps?
What do you think are the best examples of open source rails apps? I keep a copy of typo trunk around just to look at the code to see how they''ve solved a problem. Do you know other apps that you consider particularly well written? Thanks -- - Stephen Bannasch Concord Consortium, http://www.concord.org
2009 Feb 28
2
having trouble building on Mac OS X 10.5
I'm getting this error trying to build speex on MacOS X 10.5.6: ./configure: line 21256: syntax error near unexpected token `FFT,' ./configure: line 21256: ` PKG_CHECK_MODULES(FFT, fftw3f)' Thanks for any tips. Details ... I'd like to use speex with ffmpeg but when I run ffmpegs configure with: --enable-libspeex I get: ERROR: libspeex not found Soo ... I
2007 Aug 04
2
Modifying the restful_authentication plugin / Classes creating instances of themselves.
Hi, I''m trying to modify the restful_authentication plugin so that it first authenticates against LDAP (Active Directory), if successful, it tries to find a matching user with the same username in the database, through a model ''user''. If it finds a user, it updates a last_login attribute; if it doesn''t find one, it creates one. The "remember me"
2006 Mar 21
5
RoR and Growing Pains
I have persuaded my company to move towards an RoR shop... from a PHP 5 (with in-house-built framework)... so the jump is not terribly bad. I''m REALLY excited actually! My problem: I am overwhelmed with all the setup Loops I have to jump through to get RoR setup. I tried it on my current Apache 1.34 and decided it''d be easier to make the Lighty (1.4.11) jump. So I did. I get