similar to: Switching databases in Rails v1.0 app

Displaying 20 results from an estimated 2000 matches similar to: "Switching databases in Rails v1.0 app"

2006 Mar 29
1
Fixing output_compression for Rails 1.1
With Rails 1.1 the output_compression[1] plugin was broken. Once I upgraded to 1.1, I had to tweak it a bit to make it work. Mainly it''s removing the code dealing with component requests, as that''s part of rails now, and changing one function call. Get the modified output_compression.rb file from http://devblog.famundo.com/output_compression.rb and give it a try. It''s
2006 Jan 31
3
Lost in routing
I''m trying to create a modules based system where my controllers are all under modules. So the structure looks something like: app/ controllers/ message/ news_controller.rb email_controller.rb library books_controller.rb pictures_controller.rb home_page_controller.rb Each of those controller has
2023 Sep 19
1
Subsystem sftp invoked even though forced command created
This is a new branch of an old thread, made necessary because the email system here purges sent messages after a period of time so I can't reply to the last message in the thread. The operative portion of that last message (retrieved from the archives and dated July 3, 2023) follows: /*****/ So I set up a fresh key to use for this test, and gave it similar parameters. I wasn't aware of
2023 Jul 06
1
Subsystem sftp invoked even though forced command created
On 05.07.23 18:01, MCMANUS, MICHAEL P wrote: > It appears the forced command either does not run or runs to completion > and exits immediately, as there is no process named "receive.ksh" in > the process tree. FWIW, two cents of mine: -- The script *exiting* should *not* prompt sshd to execute the requested subsystem "as a second thought", or else it'd happen
2006 Apr 24
3
Regex in HTML
So, I''m trying to write a nice bit of regex to handle finding anchor tags in a bit of html. This is what I''ve got.... /<[aA][^>]*>[^<]*<\/[aA]>/ I''m planning on using this with a gsub!. Here is what it has to do.... <html><a href="http://stuff.com" class="link">Anything in here.</a></html> As you can
2006 Jun 22
18
Ruby on Rails Live CD
I''m pleased to announce the initial release of the new Ruby on Rails LiveCD Linux Distribution. http://www.railslivecd.org The RailsLiveCD offers most of what an average Rails developer needs right out of the box! That includes : Ruby 1.8.4 Rails 1.1.2 Capistrano 1.1.0 Mongrel 0.3.13 Rake 0.7.1 Subversion MySQL 4.1.12 MySQL Administrator RadRails KDevelop Kate and many many others!
2006 Mar 16
5
Multiple databases + switching databases
Hello, I have an application that access two different DBMS - Firebird and Postgres. So far, that''s ok. The problem is, depending on the customer logged, a different database (Firebird) must be selected. To make the things clearer: Postgres: 1 database shared by all customers with these tables: - user - vehicle - driver Firebird: several databases with different names and identical
2023 Jul 07
1
Subsystem sftp invoked even though forced command created
On 06.07.23 23:37, MCMANUS, MICHAEL P wrote:> So changing the forced command as stated will break the application. I > would need to create a test bed to simulate the listener rather than > use the server as is, where is. That may produce false or misleading > results. Since the forced command is tied to the specific keypair in the authorized_keys, you could -- test with a different
2004 Aug 25
5
Something broken in voicemail app??
I updated my source and compiled * last night so I am running CVS-HEAD-08/24/04-23:51:01. This morning I have noticed that when anyone tries to retrieve their voicemail, the voicemail app is not recognizing any digits entered from the phones (cisco 7960's), so It just times-out waiting for digits. Has anyone else seen this problem or could it be something in our environment? TIA, Jamie
2002 Mar 11
1
problem with deriv3?
Using S+ 6 for Linux and R 1.4.1 Taking verbatim some lines from S-Plus that work perfectly, and running them on R, I get an unexpected error message: R : Copyright 2002, The R Development Core Team Version 1.4.1 (2002-01-30) > library(MASS) > data <- read.table("/usr/local/data/mcmanus.dat",header=T) > mcmanus.frm <-
2006 Apr 06
3
Deploying with Capistrano via cron
I''m attempting to auto deploy a rails application to a development server periodically during ongoing development. I''ve setup ssh keys to allow the proper user auto login permissions, but have ran into 2 issues. 1. When the script is run from a cron job as the same user as I currently manually deploy from I receive an error when reaper tries to execute - "can''t
2006 Sep 19
2
[OT] SVN: Anybody use BDB?
I''m moving my Subversion repository to a new server. The old server uses Berkeley DB/Sleepycat and if memory serves, it was a lot of effort to set that up -- so I think I''ll try FSFS. Does anybody use BDB and prefer that over FSFS? Or had any problems with FSFS? (I never had any problems with BDB, performance or otherwise, btw.) Thanks, Joe -- Posted via
2006 May 31
6
Restricting access to files uploaded by file_column
Hi Guys, Does anyone know how to restrict access on files that you upload in file column to certain users only? I notice that files being saved by the file_column by default are being saved under the public folder and can be accessed just by typing the URL directly. Let''s say you have a Login system where you restrict access to some pages and allow those users to upload their own
2023 Jul 05
1
Subsystem sftp invoked even though forced command created
On 05.07.23 02:50, Damien Miller wrote: > Some possibilities: > 1. the receive.ksh script is faulty in some way that causes it to invoke > sftp-server How would the script even *know* that the client requested the SFTP subsystem? Is a subsystem's executable/path, supposedly internally overwritten with the forced command at that point, exposed through $SSH_ORIGINAL_COMMAND ?
2006 Jun 19
4
Oh, Don''t Forget... launches!
Just wanted to send a quick thank you to the contributers on this forum. Today, with the help of many around here, I launched ohdontforget.com! Ohdontforget.com allows US visitors to schedule sms text messages for a specific date and time, for free. Although I have officially, launched, there is still room for improvement. I used this project as a learning opportunity for Ruby on Rails and
2006 Mar 05
5
A nicer and gentler form of spawner
I was working on deploying an app with switchtower, and I really dislike the way spawner is implemented. The way it will relaunch the dispatcher all the time just to let it die if the port is in use is too brute force for my taste. As we''re in a ruby script, why not let ruby find out if the port is in use? Using the TCPServer class we can try and bing to the port. If we succeed, it means
2013 Feb 25
7
Optimistic Locking Enhancements: Gem or Core?
I''m working on an app that makes use of rails'' optimistic locking feature and seeing some possibilities for improvements. It seems a bit tedious to have to add :lock_version to forms wherever the model is used. You also have to "hack" around rails'' UJS feature to add it as a URL parameter when using remote: true, method: [:put, :patch, :post, :delete].
2006 Jun 15
13
Best Approach to a ''Down for Maintenance'' Page?
What is the best way to implement a ''Down for Maintenance'' page across your Rails app? Ideally I would like to have a button in my admin section that toggles the display of a ''currently under maintenance'' page to every public request to the app (possibly with some dynamic content like estimated down-time) except for: - - requests from a specified IP
2023 Jun 29
2
Subsystem sftp invoked even though forced command created
Folks, I'm curious if the documented behavior of portable OpenSSH (specifically Linux) may be at odds with the actual behavior I have seen in my experiments. Here is the background: I manage an application which collects data from a client script (Korn shell) which runs on Unix and Linux servers across the entire enterprise. The client communicates with a Linux server (currently running RHEL
2007 Mar 27
18
Textile Editor Plugin v0.1
The Textile Editor Helper (TEH) is a Javascript-based text formatting toolbar that will be added to all of your text areas that utilize the TEH feature. TEH was developed to provide a more WYSIWYG-ish option for users of our Rails CMS called slate while still letting us use Textile. ====================== = So what are the features? ====================== These are a list of the current features