Displaying 20 results from an estimated 3000 matches similar to: "transacting with different db tables"
2008 Dec 16
0
db:create & db:migrate issues
Greetings:
I am new to ROR and RadRails. All assistance will always be
appreciated.
My environment:
Windows XP
Ruby 1.8.6
Rails 2.2.2
Aptana Studio, build: 1.2.1.020234
RadRails 1.1.0.200812081651NGT
I created a new ROR Project.
When I attempted to run db:create --trace for the first time I got the
following message:
in C:/RailsApp/chbdepot)
** Invoke db:create (first_time)
** Invoke
2007 Nov 08
0
error on migration
Hi all,
I''m just getting started with rspec. I''m using trunk rspec with edge
rails. I get an error on migration though, here it is:
rake db:migrate RAILS_ENV="test" --trace
(in /home/pat/railsapp)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined method `failure_message'' for class
2006 Jul 03
3
Sharing Session Between Two Applications
Hi
We have a rails application deployed and working fine. Along with this, we are planning to add "Opinion" forum. The url of the forum will be like http://forum.mymainsite.com Is it possible to share the session (that is, if the user is already logged in on the main site, he need not log in again on the forum section).
Is it possible to add the ''opinion'' as a
2007 Jun 22
0
Mongrel_cluster and rails app in a subdirectory
Info:
Apache 2.2
mongrel 1.0.1
mongrel_cluster 0.2.1
I''ve had everything working with a bunch of applications like this
when the the rails app is the document root, but a client just asked
to move the app to a subdirectory, leaving he rest of their site
alone. However, I can''t seem to get it to work. Let''s make the
assumption that the Apache document root for the
2005 Dec 19
1
Deploying with Sub Directories
Hi, I am following this "tutorial" on dreamhost to deploy with sub
directories:
1. Upload your railsapp to ~/railsapp/.
** I have uploaded to /sharemyten.com/list/ (list is my railsapp folder)
2. Make all necessary changes mentioned in the QuickStart Guide above.
** Did this...
3. Create a symlink at the location you want the subdirectory that
points to ~/railsapp/public/:
$ cd
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 May 31
0
Slave socket problem again
Hello!
I have been using backgroundrb for a small project. My worker task is
run every minute, checks the processing queue in data-base and execute
the business method from Rails if something is to be done.
Unfortunately I was hit by the problem of backgroundrb server dying
after some runs. The exception is:
20070531-11:06:05 (31816) Starting worker: s_e_work sql_exe
(s_e_work_sql_exe) ()
2006 Sep 22
1
how about the global data when multiple backgroundrbs ?
Ezra,
Suppose a chatroom application, a RailsApp + 2 backgroundrbs: MiddleMan1&
MiddleMan2, running in 2 machines.
When Chater1 login, RailsApp call MiddleMan1 to get something about
Chater1 from db to memory, like his contacts or other personal settings.
When Chater2 login, RailsApp call MiddleMan2 do the same thing.
But who is reponsible for the Global Data? like a Online Chaters
2005 Mar 08
3
Making a module method available in view
I have a Rails application called RailsApp. In my RailsApp/lib
directory, I have a file called localization.rb that defines a module
called RailsApp with a Localization class that implements a method l.
(RForum devs and fans will recognize this as the YAML-based
localization feature in that package.)
I want to be able to call this method from my controllers and views.
I have added a
2013 Apr 13
3
Cannot reach http://localhost:3000 after starting Ruby on Rails server
I cannot reach http://localhost:3000 after starting Ruby on Rails
server when running Windows 8. After running rails server in the
directory that I want the server to start, the following prompt shows
up:
C:\Users\Brian\railsapp>rails server
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown
2006 Jan 12
0
Apache proxy + lighttpd + rails
Hi list,
I''m having another problem deploying my Rails application. I set up
the servers and apache2 configuration using the excellent essay by
Duncan Davidson:
http://duncandavidson.com/essay/2006/01/railsonapache
However, he describes proxying using a subdomain. What if I want to
proxy the requests of www.domain.com/railsapp/<url> to
www.domain.com:8888/<url> and reverse
2006 May 20
3
integrate with php-script
I have built a webshop in rails, now it''s time for invoice handling
through a third party. The communication will be done by xml-rpc. The
built in ruby xml-rpc doesnt seem to be compatible with the third party
so I have to use a special php-script (provided by the third party) that
will handle the interaction with them. Where on the server should/can I
put the script? I would prefer
2006 Jul 21
1
Lighttpd for rails app subdomain apache for the rest
I want to host a rails app at mydomain.com/railsapp. For technical
reasons I have to leave mydomain.com on apache. This means that I need
to tell apache to proxy only requests for mydomain.com/railsapp to
lighttpd. I have deployed in a situation like this before around a year
and a half ago but it was a real pain. Lighttpd and rails have matured
a lot in the year and a half since I did
2007 Mar 09
3
Rails log file permissions
When I start a Rails server with
$ mongrel_rails start --chdir ~/railsapp --port 3003 --pid \
/home/me/railsapp/tmp/pids/mongrel.pid --daemonize
the server starts and opens two log files, development.log and
mongrel.log. Both have permissions -rw-rw-rw-.
If I omit --deamonize, it opens one log file, development.log, with
permissions -rw-r--r--.
I would like to make the server use
2007 Mar 14
0
RE: Re: can´t access share by name, but on ip
nmbd is already running unfortnately... i can say that when running samba version 3.11 on Solaris it is working also with 3.23... ????
thanks for your suggestion tough !
/J
> Date: Wed, 14 Mar 2007 15:59:17 +0700> From: garasi9@gmail.com> To: jflory@aeiconsultants.com> Subject: Re: [Samba] Re: can?t access share by name, but on ip> CC: samba@lists.samba.org> > Hi...>
2007 Jul 01
1
Differences in deliver and IMAP
Hi
I've now got Dovecot 1.0.1 authenticating with PostgreSQL for the IMAP
service, but deliver doesn't seem to work the same.
I'm using the "prefetch" passdb, but deliver doesn't seem to recognise it.
Here's the log for a deliver attempt:
dovecot: Jul 01 16:51:35 Info: auth(default): master in: USER 1
andy.shellam at mailnetwork.co.uk service=deliver
2006 Jul 12
5
railsapp/db/migrate Newbie question
I made a mistake when making my first app. I did not use the:
ruby script/generate model <modelname>
method for creating my models. I more or less hand crafted each og
them. Is there a way to go back so I get my db migration scripts to
populate?
--
Posted via http://www.ruby-forum.com/.
2006 Feb 06
4
fcgi to run cgi scripts
Dear experts,
I have rail site that is running lighttpd and fcgi. I want the default
domain to serve the rails application, and I also want to have a
virtualhost (bugs.mysite) to resolve to a bugzilla instance.
Bugzilla is basically Perl application called through CGI.
I tried to find pointers on how to set fcgi to run both rails dispatcher
and other cgi scripts in a different virtualhost, and
2006 Aug 09
0
FastCGI - how to relocate dispatch.fcgi outside of rails app
Howdy.
Due to a rather unique hosting setup, I need to relocate the
dispatch.fcgifile to a directory outside of
/path/to/application/public.
The setup looks like:
/path/to/content/RailsApp/ -- all application files
/path/to/fcgi-bin/RailsApp/ -- dispatch.fcgi
I''ve modified dispatch.fcgi to find environment.rb; however, all requests
for static files (index.html, javascripts, etc) fail
2006 Jul 18
2
Scaffold a Plural table w/ No Pluralization in environment
Hi guys,
I have a situation here. I have my project set to no pluralization due
to legacy tables in environment.rb. Now, I have some new tables which
I''m starting to pluralize. When I do a generate a scaffold to this new
table:
script/generate scaffold my_tables table
it seems to work out fine for certain sections like
http://mysite.com/railsapp/new (which also inserts properly to