similar to: Store common settings in one file?

Displaying 20 results from an estimated 200 matches similar to: "Store common settings in one file?"

2006 May 17
1
Apache config: Two different rails apps using same domain name (mod_rewrite issue)
The problem I''m solving here is that I have two different Rails applicatons that uses the same domain name. One handles the www (e.g. www.mycoolapp.com) and is used as the main site, and the other handles the user subdomains (e.g.. someuser.mycoolapp.com). The DNS stuff and the Apache virtual hosts were all set up, the two rails apps are in place in the file system, and the proper
2010 Feb 15
4
Changing the :path and :url options of has_attached_file in paperclip
Hello, I am using the paperclip plugin to upload images and it works absolutely fine. I intend to save my uploaded images to C:\Application_name\public folder. Accordingly, with some study over the i-net, I changed the :path option of has_attached_file to - :path => "C:/Application_name/ public/:class/:attachment/:id/:style_:basename.:extension" Now, the files are being saved to
2016 Apr 27
5
Bourne shell deprecated?
>>> >>last OS I can think of with an actual Bourne shell was Solaris. >>> >> >>> >> >> > >> >The various *BSD's have & use the actual Bourne shell .... >> > >> > > Which one? All the BSDs I know of use the Almquist Shell except for > OpenBSD which uses a patched version of the Public Domain Korn Shell
2011 Feb 18
3
lua -asterisk manual
Please could someone advise good manual for using lua for asterisk dialplan. There is not much docu about it. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110218/42642787/attachment.htm>
2009 Feb 15
2
Execute cap deploy:migrations fails
Hi there, I am trying to deploy a rails app on dreamhost. Here is the error message that I get: fatal: ''home/USER_NAME/DOMAIN_NAME/git/APPLICATION_NAME.git'': unable to chdir or not a git archive fatal: The remote end hung up unexpectedly /Users/USER/.gem/ruby/1.8/gems/capistrano-2.5.3/lib/capistrano/recipes/ deploy/scm/git.rb:224:in `query_revision'': Unable to resolve
2006 Oct 12
7
Evil Scaffold
I read the Amy Hoy''s presentation on why scaffold is not a good thing for beginners. For admin application, is it ok to use scaffold? --~--~---------~--~----~------------~-------~--~----~ 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
2006 Jul 28
5
RoR & Lightbox
Has anybody else had a problem with using Lightbox in their RoR apps? I include all the necessary files in application.rhtml and then attempt to use the Lightbox functionality in pages and such. Nothing happens except that a new page opens up with the link to the image I was attempting to show with Lightbox. I''ve even gone so far as to strip out everything except the necessary
2008 Feb 29
8
Running LaTeX dvi previewer on MacOS X
Several people have given great advice on how to successfully use X11 on Mac to so we can use the dvi previewer to view latex() output from Hmisc. Now after a version upgrade of X11 and X11sdk we are getting lots of crashes. I noticed a Mac dvi previewer with an executable stored as /Applications/TeX/TeXShop.app/Contents/MacOS/TeXShop Can we bypass X11 problems and point Hmisc to this
2006 Jun 26
4
Counting Associated Records from MySQL Result
Hey All, I''m currently working on a Guitar Reviews website and I think i''ve been coding for way to long and forgot the basics..I''m having trouble doing a simple SQL method. I have 2 Tables, 1 for Guitar Manufacturers (gmanufacturers) and 1 for Guitar Models (gmodels), every model has a manufacturer and every manufacturer has many models (gmodel belongs_to
2006 Jul 28
5
DREAMHOST SO SLOW
Does anyone know of any fixes to this? Any industry-known tips/tricks? The page loads sometimes take 20-30 seconds. so bad. mk -- Posted via http://www.ruby-forum.com/.
2006 Aug 05
4
file_column just will not work...
Hello, I have been trying for some time to get a file to upload using the file_column plugin. My code is here: http://pastie.caboo.se/7304 But my code is not the issue. I cannot even pass the unit test that come with the file_column plugin. If I run ruby file_column_test.rb i get: 1) Error: test_store_dir_callback(FileColumnTest): TypeError: can''t convert Fixnum into String
2006 Sep 06
22
ROR host: dreamhost or godaddy?
hi all, i am looking for a host for my ROR web app. the target audience will be 70% from mainland china, and 30% from the rest of the world. i dont want a chinese hosst because: 1. it''s very slow for the rest of the world to access to it. 2. the speed is quite ok for china to access the us sites. both dreamhost and godaddy provide similar budget plans, and i saw them all from this
2019 May 07
1
samba-tool max-pwd-age error
On Tue, 7 May 2019 17:06:24 +1200 Tim Beale <timbeale at catalyst.net.nz> wrote: > Apologies, this bug fell through the cracks and the fix never got > backported to 4.10. I've uploaded the backport to the bug now, it just > needs a review signoff. > > To recap, it was introduced as a side-effect of switching to Python 3. > The old code never worked as intended on
2006 Aug 11
3
Rails Documentation is RoR''s achilles heel
Hi All Just a few minutes back I came across a post about autotest/zentest and that post reignited the feeling I get when I look at RDoc, RoR documentation. The main thing that is lacking in RoR and to some extent Ruby''s RDoc is showing method names in HTML is not documentation. The arguments to method, exception/errors raised by method, return value and a usage example completes the
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
2016 Jul 15
5
[PATCH 0/3] mllib: Various fixes and changes to Getopt module.
The second patch is obviously not complete yet - for discussion only. Rich.
2018 Aug 20
1
[PATCH] common/mltools: getopt: add Getopt.OptString
Introduce a new type of option with an optional string argument. --- common/mltools/getopt-c.c | 20 +++++++++++++++++++- common/mltools/getopt.ml | 5 ++++- common/mltools/getopt.mli | 4 ++++ common/mltools/getopt_tests.ml | 18 +++++++++++++++++- common/mltools/test-getopt.sh | 11 +++++++++++ 5 files changed, 55 insertions(+), 3 deletions(-) diff --git
2006 Mar 19
1
Question on creating a report
Hi, I''ve got a little Rails app, and I wanted to generate a report from some data. I did it one way, but it didn''t seem quite "Rails". I created two methods in a controller, one called "report" that was empty: def report end that would just then display the report.rhtml page. This page contained a form tag with a text box and a submit button. This form
2018 Aug 21
4
[PATCH 0/2] RFC: add output selection for --machine-readable
Hi, this is a first approach (hence RFC, since it misses tests & documentation) in selecting the output for --machine-readable. The possible choices are: * --machine-readable: to stdout, like before * --machine-readable=file:name-of-file: to the specified file * --machine-readable=stream:stdout: explicitly to stdout * --machine-readable=stream:stderr: explicitly to stderr This makes it
2006 Jan 20
6
Pre-populate db with yaml outside of testing?
Hi. What is the best way to pre-populate your database with records while developing, not testing? For example, I want to: 1) > [run this command to populate db] 2) > ruby script/server 3) now I can surf to localhost:3000 and my app will already have relevant data I''m hoping to use yaml to suck it in. Is there a way to use the Fixture class to handle this even though this is