search for: railsapp

Displaying 20 results from an estimated 108 matches for "railsapp".

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 `Spec::Matchers::Have'' /home/pat/railsapp/vendor/plugins/rspec_on_rails/lib/spec/matchers/have.rb:4:in `alias_method'' /h...
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...
2006 Apr 24
12
setup a staging site?
Hi, i''m wondering how to setup a staging site for my RoR app. Right now i run webrick on my laptop to develop, then i svn commit my changes to the production server. However i need to make my development environment available to others and not just for me on my laptop. I have RoR setup on a hosted vps server which runs in production environment. Its on apache 1.3 and mysql. How can i
2007 Jun 22
0
Mongrel_cluster and rails app in a subdirectory
...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 site is in /www/htdocs, and the Rails root is /www/ror_root. Further lets say the client wants the application to be found at http://mysite.com/railsapp. This is what I have in the mongrel_cluster.yml --- user: mongrel cwd: /www/ror_root port: "8008" environment: production group: mongrel address: 127.0.0.1 pid_file: log/mongrel.pid servers: 2 prefix: /railsapp Here''s what I have in the apache config: <VirtualHost *:80>...
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 ~/yourdomain.com/ $...
2006 Feb 24
8
Ruby site structure on Apache
I use a hosting company,it use appache for RoR I test a ''hello word'' code here http://www.smtservers.com/demo/ I can see the working code here http://www.smtservers.com/demo/public/say/hello My question is how to short the url like http://www.smtservers.com/demo/say/hello.I do not like public always in URL Thanks for help Mark -- Posted via http://www.ruby-forum.com/.
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 repo...
2009 Nov 21
3
Using mongrel_rails: Can't install Redmine as win2003 service
Hello everyone. After stugging 3+ hours installing redmine I got success but still can''t install redmine as service (windows 2003). So here is my problem. I successfully installed redmine and mapped it to mysql, created database and initialized it with default values. Last thing I''m trying to do is to install it as service on windows 2003, and for this I''m running in
2006 Feb 06
4
fcgi to run cgi scripts
..."/opt/webspace/mysite/public" server.port = 80 server.username = "apache" server.groupname = "apache" server.modules = ("mod_rewrite","mod_redirect","mod_fastcgi", "mod_cgi") fastcgi.server = (".fcgi" => ( "railsapp" => ( "min-procs" => 1, "max-procs" => 5, "socket" => "/tmp/ruby-railsapp.fastcgi", "bin-path" => "/opt/webspace/mysite/public/dispatch.fcgi" ) ) ) server.indexfiles = ( "index.html&quo...
2011 Oct 20
2
Agile book apache2.conf: Forbidden You don't have permission to access / on this server.
...les> container. However, before I tread where I fear in the land of conf I thought perhaps it may be a simple config issue and my lack of understanding of how things are knitted together. Here is my Virtual host config: <VirtualHost *:80> ServerName depot.yourhost.com DocumentRoot /home/railsapps/rails_3/depot/public/ <Directory /home/railsapps/rails_3/depot/public> AllowOverride all Options -Multiviews Order allow,deny Allow from all </Directory> </VirtualHost> # My hosts file in /etc has the 127.0.0.1 depot.yourhost.com Does anything look amiss here? Thank you in...
2006 Jun 04
1
Problem with images on Apache and Lighttpd
...452) Path : /var/www/images/deck/2d.gif 2006-06-04 20:57:10: (response.c.492) -- file not found I am using Fastcgi/Fcgid while getting this error, SCGI seemed even messier to me (I only tried SCGI with Apache). For whatever reason it seems that images are not taken from the (i.e.) /opt/railsapps/BlackJax/public-folder, but from the servers doc-root. btw: I did not miss to put ActionController::AbstractRequest.relative_url_root = "/Blackjax" at the end of environment.rb, I also checked .htaccess Here the important part of my lighttp.conf: ------- server.port = 80 server.modules...
2006 Jan 05
0
I found a way to dynamically switch languages in your railsapp -- look at it and give your opinions
...silvy mathews ________________________________ From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of sekhar Sent: Thursday, January 05, 2006 7:14 AM To: rails@lists.rubyonrails.org Subject: [Rails] I found a way to dynamically switch languages in your railsapp -- look at it and give your opinions step 1) Do what is there in the manual Using Gettext To Translate Your Rails Application as it is. Step2)Now create a table in your project database to store your language names which you are supporting in the project for example "langs" step 3)po...
2006 Mar 02
6
Lighttpd and fastcgi problems...
...og.filename = "/var/log/lighttpd/access_log" server.errorlog = "/var/log/lighttpd/error_log" fastcgi.server = (".fcgi" => ( "staging" => ( "min-procs" => 1, "max-procs" => 5, "socket" => "/tmp/ruby-railsapp.fastcgi", "bin-path" => "/tmp/mis/public/dispatch.fcgi" ) )) It serves HTML pages just fine, but when I try and do something ruby, I get the following trace: 2006-03-02 17:03:50: (mod_fastcgi.c.1690) connect failed: Connection refused 0 /tmp/ruby-railsapp.fastc...
2007 May 31
0
Slave socket problem again
...ely 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) () 20070531-11:07:05 (31816) Schedule triggered: #<struct #<Class:0xb7df5324> job=#<Proc:0xb7e3c274@/home/kskalski/railsapp/sars/vendor/plugins/backgroundrb/server/lib/backgroundrb/middleman.rb:355>, trigger=#<BackgrounDRb::CronTrigger:0xb7a3b42c @day=1..31, @cron_expr="5 * * * * * *", @sec=[5], @wday=0..6, @min=0..59, @month=1..12, @hour=0..23, @year=nil>, earliest=Thu May 31 11:07:05 +0200 2007, las...
2006 Nov 13
9
Setting up Mongrel and Apache , some direction needed
...sing Mongrel, and an Apache virtual host passing requests from apache to mongrel. Does this sound correct ? I believe the Virtual Host is set up in Apache. One of my problems is I can''t find the httpd.conf file for apache. Sounds strange. Currently Rails is in a folder under /var/www/html/railsapp However I see that the Rails app is configured to this path /home/virtual/site8/fst/var/www/html/railsapp. Any one know what I should be looking for on the Apache side ? TIA Stuart -- http://en.wikipedia.org/wiki/Dark_ambient -------------- next part -------------- An HTML attachment was scru...
2012 Aug 28
4
ArgumentError in HomeController#index
Hey guys, I''m new to ruby/rails and trying to sort something... I just created an app with composer, http://railsapps.github.com/rails-composer/ I used the command: rails new myapp -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb I set up the rails server, and tried to load the app on localhost:3000 However, I end up with: ArgumentError in HomeController#index Need a handler. Supply an...
2006 May 20
3
integrate with php-script
...tion 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 to have it in railsapp/app or railsapp/public, but that doesnt seem to work. Rails 1.1 Lighttpd SCGI -- Posted via http://www.ruby-forum.com/.
2006 Mar 27
3
any luck installing RoR with apache / cpanel setup?
i just went through installing RoR on a cpanel setup and everything seems to work except for deployment. i go through the entire process of setting up a new rails app on a cpanel account and i get: Not Found The requested URL /testapp/index.html was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
2007 Jul 24
2
Nested params and redirect_to
...t"} ie it is not nesting the "client_search" hash and I get the following error when trying to update the attributes on the client_search table using these params: NoMethodError (undefined method `stringify_keys!'' for "last_namesmithfirst_namejane":String): E:/RailsApps/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/base.rb:1668:in `attributes='' E:/RailsApps/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/base.rb:1591:in `update_attributes'' Can anyone tell me what I am doing wrong and how to get around...
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/.