similar to: locomotive and establish_connection

Displaying 20 results from an estimated 90000 matches similar to: "locomotive and establish_connection"

2007 Feb 04
0
Locomotive/lighttpd config questions
I''ve got a couple of configuration questions about using lighttpd under Locomotive: * (how) can I cause lighttpd to run each Rails page request as a separate process? It seems like this should be possible, using dispatch.cgi, but I don''t know how to get that to run. * Assuming that I have a looong-running Rails app, (how) can I raise the lighttpd
2007 Nov 29
6
Locomotive: Can not install mysql gem
I''m using Locomotive on MacOSX 10.4, and I have installed mysql 5.0.45. To my surprise, the Ruby version included in Locomotive does not come with the mysql gem installed, so I tried to install it manually. According to the instructions in database.yml, this should be done using the --include switch, like this: gem install mysql -- --include=/usr/local/lib I selected the mysql 2.7
2005 Dec 30
2
Locomotive 1.0.0 for Mac OS 10.3+
Hi All, I''m very happy to announce the release of Locomotive 1.0.0. Locomotive is a one-click development solution for Rails on Mac OS X. See more details at http://locomotive.sourceforge.net Get it at: http://prdownloads.sourceforge.net/locomotive/Locomotive_1.0.0.dmg?download What''s New? =========== * Server bundle updated to lighttpd 1.4.8 * Server bundle updated to
2005 Dec 15
1
Locomotive for Mac OS X 10.3+. Now with Rails 1.0
Hi All, The base Locomotive download now comes with Rails 1.0. http://locomotive.sourceforge.net If you already have a current version of Locomotive (0.4.1), all you need is a new bundle. Rails 1.0 Min: http://prdownloads.sourceforge.net/locomotive/Rails_1.0.0_Min.dmg?download Rails 1.0 Max: http://prdownloads.sourceforge.net/locomotive/Rails_1.0.0_Max.dmg?download Cheers! -r -- Ryan
2011 Jul 19
2
ActiveRecord::Base.establish_connection in development and production envs
Hi, guys! Background: I''ve resque workers in my application. These workers do several jobs that associated with DB. In development environment, I''ve no need to provide some additional configuration for db, they are use development database. But then I switching to production env, I set ActiveRecord::Base.establish_connection with my production DB parameters. Problem: When
2006 Aug 13
1
establish_connection method
I''m digging into rails source code. But I''ve got a problem in undestading actionrecord::base source code which is connection_specification.rb. In the body of establish_connection method, def self.establish_connection(spec = nil) case spec when nil raise AdapterNotSpecified unless defined? RAILS_ENV establish_connection(RAILS_ENV)
2005 Sep 22
0
Locomotive 0.2.1 for Mac OS X 10.3+ : rails_product support
I am pleased to announce the newest release of Locomotive with one new feature! New in 0.2.1 ============ * Correctly loads rails_product''s from the sites/ directory Otherwise unchanged from 0.2.0. If you already have 0.2.0 and don''t want/need rails_product support, then you don''t need to download this release - rails_product support is the only change. Get it at:
2005 Sep 27
6
Locomotive 0.2.4 for Mac OS X 10.3+
I am pleased to announce the newest release of Locomotive! http://locomotive.sourceforge.net Mostly a bug fix release. If you are using Locomotive on 10.4 you should definitely upgrade. New in 0.2.4 ============ * Rename application entries in status window * Run/Restart/Stop buttons now immediately update * Bundle choosing is fixed for Mac OS X 10.4 * Missing gem dependencies in Rails 0.13.1
2007 Feb 20
2
rails 1.2.1, locomotive and backgroundrb
Hi I just tried to move my project to rails 1.2.1 on my locomotive development setup. It seems that backgroundrb is not willing to start up anymore. If I switch locomotive back to 1.1.6, everthing is fine. This is the error I get while attempting to start backgroundrb: /Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/
2006 Jan 02
5
How can one use GRUFF with locomotive ( I guess there is a wider question here, also)
Hi: I love Locomotive and use it exclusively for my rails projects. I''d like to install GRUFF and give it a try (a graph image creation package). I know I can do sudo gem install gruff from the command line for normal ruby and rails. How do I make gems available to Locomotive? bruce
2007 Dec 03
2
attachment_fu 'replace' method?
Is there a ''replace'' method or similar for attchment_fu? For instance, I have an image that is uploaded and stored. Now I want to replace it with a different image. I do not want to do a delete and then new - since I need to keep various attributes associated with the previous image. thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message
2007 Apr 09
0
Problem with Ferret on OS X with Locomotive
I am using Locomotive 2.0.8 with Rails 1.2.3 for development. It works great. I recently installed Ferret 0.11.4 as a gem. The installation seemed to go fine. No error or warning messages. I setup a test rails app to try Ferret, and the server won''t start. The error I get is /Applications/Locomotive2/Bundles/rmagickRailsJan2007_x86.locobundle/
2006 Jun 16
0
Mysql: establish_connection''...development database not conf
I have tried for several hour to get a mysql db connection to work, but have failed so far: This is a cpanel server running Mysql 4.1.19, fcgi with apache. Here is the output from script/console Loading development environment. /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:194:in
2006 Oct 12
2
Too Many Mysql connections
In my app, for three models: foo,bar and baz, the database connection is made to a different database and hence in model code: class Foo < ActiveRecord::Base establish_connection :diff_database end class Bar < ActiveRecord::Base establish_connection :diff_database end class Baz < ActiveRecord::Base establish_connection :diff_database end Now, the problem is, if is use the above
2007 Sep 26
0
activerecord multiple databases
So, I was looking for a setup that would allow me to easily query multiple databases and not have to re-write my customer finder type queries. Here is what I came up with and it seems to be working for me in my very basic tests so I thought I''d share. Just posting it in case this helps anyone else trying to do the same thing. I''m using this with activerecord, but not rails, so
2006 Jun 09
0
RJS files not getting called in Locomotive...
I''m adding rjs stuff into my app for the first time, but my RJS files don''t seem to be getting called. I''m sure its my fault - not rails or locomotive. Does anyone have a really simple little rails app with an example of rjs that they could zip up and send me to try out? Thanks Tom
2005 Dec 21
7
Are there any disadvantages to using locomotive
Hi: I had some issues and so switched to locomotive. I find it awesome. 1 click and its done. My question - what disadvantages are there, if any? What do I lose by using such a convenient solution. speculation as well as facts are welcome but please define which you are putting forwards. Thanks in advance, bruce
2005 Dec 19
4
Locomotive 500 - Internal Server Error
I''m getting this in my Lighttp.error.log file when trying to run typo in Locomotive. What does this mean? 2005-12-19 16:56:57: (mod_fastcgi.c.1532) connect failed: 9 Connection refused 61 0 /tmp/ruby-fastcgi.A5364CB4-70E2-11DA- AC3C-000A95BA28D0-5471-00000DCDBD6C54E6.socket-1 2005-12-19 16:57:01: (mod_fastcgi.c.2196) unexpected end-of-file (perhaps the fastcgi process died): pid:
2007 Apr 04
4
joining across databases in a find statement with include (legacy db)
Hi, I have a legacy database ''old'' and a new database ''new'' which rails uses. I set up models using old with establish_connection(old), and this works well, except for include: class OldModel < ActiveRecord::Base establish_connection(old) end class NewModel < ActiveRecord::Base has_one :old_model end a = OldModel.find :first NewModel.find(:all,
2009 May 07
5
Controller redirect_to to leave iframe
Inside an iframe, I want the controller to redirect_to to the parent (i.e. target =''_parent''). Any ideas? (Everything I''ve tried- via redirect_to - just keeps it inside the iframe)