similar to: uninitialized constant error in app but not when using console

Displaying 20 results from an estimated 6000 matches similar to: "uninitialized constant error in app but not when using console"

2006 Apr 13
1
Model is not a class
I''m trying to specify a model in a controller, but rails gives me "Account is not a class", where Account is my model name ... This is my model: class Account < ActiveRecord::Base validates_presence_of :email, :email_confirmation, :username, :password, :password_confirmation validates_format_of :email, :with =>
2006 Mar 02
2
SwitchTower: why symlink releases/under -> current?
Hi, I have a trouble with deploying my ordinary rails application(myapp). When I execute ''rake deploy'', [...] command finished * executing task symlink * executing "ls -x1 /var/www/myapp/releases" servers: ["app1.olalog.com"] [app1.olalog.com] executing command command finished * executing "ln -nfs /var/www/myapp/releases/under
2005 Dec 30
2
scgi apache routes help needed
I''m trying to get an application running in a sub directory of a site using apache and scgi. The application runs fine with webrick. I have a site. Let''s call it "mysite.org". There is a variety of content on that site. I would like to add a rails application to that site. Let''s call the application "myapp". So we will have urls of the form
2013 Jul 02
1
rpmbuild environment CentOS5 vs CentOS6
On CentOS5 I was used to create a simple spec file where at the end I'll declare files and directories I wan't to package: --< Snip >-- %files %dir /opt/myapp %dir /opt/myapp/bin %dir /opt/myapp/etc /opt/myapp/bin/exec01 /opt/myapp/etc/myapp.conf ---- I'll copy the file in /usr/src/redhat/SPECS and run "rpmbuild -bb myapp.spec". On CentOS6 rpm-build package no longer
2011 Jan 22
1
uninitialized constant ActionView::Helpers::TagHelper::ERB (NameError)
I am a new to ruby and rails and am trying to refactor some code with rspec and have run into a problem that has stumped me for a few days and I have searched google and ruby/rails forums to no avail so I really hope somebody can help me out with this problem which I think may be caused by a rails config problem. Anyway, I used ''rails new myapp'' to make a new rails project and
2009 Apr 30
1
odbcConnectAccess function
HI: Is it possible to use the RODBC package within MS Access. I have been using from R but was just wondering if it could be used along with R(D)COM. Something like this: Dim dbs As DAO.Database Dim rst As DAO.Recordset Dim myApp As StatConnector Set myApp = New StatConnector myApp.GetErrorText myApp.Init "R" myApp.EvaluateNoReturn "library(RODBC)" myApp.EvaluateNoReturn
2007 Jun 07
6
Can't download files with send_data or send_file
I have a form_remote_tag that calls a method to print out a csv file for download. If I tell the form_remote_tag to update a div the data comes up in that div, but otherwise I can''t get the browser to acknowledge the sent file. >From view: <%= form_remote_tag :url => {:action => "csv_dump" }%> <%= submit_tag "Download Complete List" ,:name
2007 Dec 27
4
validates_file_format_of only when is there an image
i have a model with this: file_column :image validates_file_format_of :image, :in => ["gif", "png", "jpg"] If inthe form the user not insert the image i receive an error. If i remove: validates_file_format_of :image, :in => ["gif", "png", "jpg"] it works. Is possible do the validation only when user insert the image in form? i
2006 Mar 09
3
OT: Subversion repository layout
Hi, I''m trying to get a nice repository structure happening and was wondering what other people like to use. I''m about ready to publish a rails app. This app now lives in myapp/trunk When this app goes live I will need to freeze it so I will copy myapp/trunk to myapp/tags/release-1.0 (right?) I also would like to get going on a new version which will break the current
2007 Jan 25
6
NOT FOUND error
I''ve been hunting the web and reading the mailing lists all day but I''m not finding any guidance on this problem. When I try to talk to my mongrel it simply responds with NOT FOUND and nothing else. I can''t find anything on google because this has to be the second most commond phrase in existence. Any help or guidance would be greatly appreciated. Sincerely, Chuck Vose
2007 Jan 02
2
problem with mongrel/apache2.2.3 and subdomain setup
Hi all I got a vps setup amazingly fast using the deprec recipes on Ubuntu edgy, but now I''m having a minor issue where my site loads for the main domain when I only want it accessible from the subdomain. This is a pretty typical setup, apache 2.2.3 -> mongrel_proxy_balancer -> mongrel cluster. I''m sure I''m missing something obvious in the config... I have the
2005 Mar 02
2
[PATCH] klcc compatibility with gcc
Here's a patch to klcc.in from klibc-0.202. The context: I have an application, managed with GNU automake/autoconf. Packagers should be able to build the application with klibc if available, with plain gcc otherwise, as follows: $ cd ~/klibc-0.202 $ ... make linux symlink $ make bindir=$HOME/local/bin \ mandir=$HOME/local/man \ INSTALLDIR=$HOME/local \ SHLIBDIR=$HOME/local/shlib \
2006 Jul 13
3
How do I pass parameters to my program when using WINE?
Hello, I'm trying to figure out the proper way of passing parameters to my program that is being run by WINE. I've been trying different things I've found in Google, but none have seemed to work yet. The parameters work in a Windows environment, so I do believe the program is okay. This is on a SUSE/SLES 9 machine using WINE .917. If I want to pass the parameter
2005 Feb 22
2
Custom Menu Not Working
Greetings *`s, I am having what appears to be a small problem, but the frustration is erally getting to me, what am I doing wrong here ? I used AMP to set up a custom menu, so if caller presses 1 it goes to ext200, if caller presses 2 it goes to ext201 etc etc... Now I have created a third option that when the caller presses 3 it must play a sound and hang up. No rocket science yet. When
2006 Nov 13
1
rails+apache2+mongrel_cluster
hey all, I managed to configure a mongrel+apache2 but now I would like to do a mongrel_cluster. For now I have a sites-available/myapp but when it comes to mongrel_cluster I need to set up myapp.common, myapp.proxy_cluster.conf and myapp.proxy_frontend.conf and I couldn''t find a tutorial that explain where should those file go. is it in conf.d or sites-available/ or else? thanx in
2007 Jan 22
4
Postamble vs campingrc
Hi, Should I be able to use the Webrick postamble instead of using .campingrc, to tell Camping I want to use mysql? It doesn''t seem to be working for me. It does work however, when I''m using FastCGI (establish_connection :adapter => ''mysql''). James
2005 Dec 06
4
Errno::E232 (The pipe is being closed.)
I get this error on occasion using both Webrick and Apache2/FCGI: Webrick Debug: [06/Dec/2005:07:46:19 :: 216] Dispatcher failed to catch: The pipe is being closed. (Errno::E232) [06/Dec/2005:07:46:19 :: 216] Dispatcher failed to catch: The pipe is being closed. (Errno::E232) C:/MyApp/Server/public/../config/../vendor/rails/actionpack/lib/action_controller/cgi_process.rb:158:in
2005 Aug 08
5
In-Line List Editing with AJAX
I''m trying to write an interface for editing many-to-one relationships with AJAX. Picture the to-do editor in Backpack (and, to a lesser extent, Basecamp) and you''ll have a good idea of what I''m trying to do. I''ve almost got everything working: the ''edit'' link hides the stored data and replaces it with a form, and the data is updated in the
2012 May 15
5
setting up the SQLite database
I know this isn''t Python, but I''d like to get a view on the ''one obvious'' way to set up an SQLite (or other) database and its location per-app. I''ve got a bit lost with the Camping 2 changes and various code snippets I have kicking around. 1. is it best to set up the DB creation/connection: 1.1 at the end of the app
2006 Nov 04
1
rsync and symbolic links
Hello! I'm using rsync to generate a backup. DATE=`date +%Y.%m.%d.%H.%M.%S` cat files.txt | rsync -avz -e ssh --include-from=- / root@myserver:/backup/$DATE files.txt contains e.g.: - /home/user1 + etc/ + etc/* + etc/.* + etc/*/ + etc/*/* + etc/*/.* + etc/**/ + etc/**/* + etc/**/.* + boot/ + boot/* + boot/.* + boot/*/ + boot/*/* + boot/*/.* + boot/**/ + boot/**/* + boot/**/.* + dev/ + dev/*