similar to: Brand new to rails: can't get databases to work

Displaying 20 results from an estimated 10000 matches similar to: "Brand new to rails: can't get databases to work"

2009 Jan 09
14
undefined local variable or method `current_user' for
Hi All, I am using a Plugin mdarby-restful_acl with restful_authentication and I am following the procedure form http://github.com/mdarby/restful_acl/tree/master , but I am getting some irritating error "undefined local variable or method `current_user'' for", I know I am missing something but I dont know what? Can anybody help me regarding this? Shahroon
2006 May 21
8
Rails and Postgres
Hi, I''m new to Ruby on Rails and am having a little difficulty working through the ''Rolling with Ruby on Rails'' tutorial. Can anyone help? I''m trying to get the cookbook application to work via a Postgresql db. But get the following error when trying to access http://127.0.0.1:3000/recipe/new Errno::EINVAL in RecipeController#new Invalid argument
2008 Sep 02
14
SQL 3 Lite Error
Hello everyone, In my controller, I put the following code: render :text => "Hello World!" It popped up with this error: " MissingSourceFile in BlogController#index no such file to load -- sqlite3 RAILS_ROOT: C:/InstantRails/rails_apps/scblog Application Trace | Framework Trace | Full Trace c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
2007 Oct 24
7
NameError in CustomersController#index
I''m new to Rails. I finished the Cookbook tut. no problem. I''m trying to start a project of my own, follow the same instructions but the difference is I created the database myself. After I create the scaffolds and try them out I get this error NameError in CustomersController#index uninitialized constant Customer RAILS_ROOT: ./script/../config/.. Application Trace |
2010 Sep 02
7
unable to upload larger files
hii, i am trying to upload some files to filesystem using rails application when i use small size file everything is perfect but i when goes for larger files i got error this is my code #this model file class DataFile < ActiveRecord::Base def self.save(upload) name = upload[''datafile''].original_filename directory = "//192.168.147.17/Smruti/streams" #
2006 May 22
4
RMagick gem problem using Rails and possibly WEBRick...
Hello, I am new to rails but have been having fun so far. Until now. I am sure this is just my inexperience but I have the RMagick gem (ruby gem for using imagemagick manipulation) installed on my machine that I would like to then use in my rails app. I first installed it and tried it out, and it didnt do anything for me, took me a while to realize I needed the windows RUBYOPT
2008 Feb 04
3
Hello World: uninitialized constant ApplicationController
Have the Wrox guide, but still having problems getting my hello world to run (very frustrating! ;-) Installed latest InstantRails package for Windows (XP). Thank you so much for helping!! Dirk After creating the project directories, I created my \app\controllers\greeting_controller.rb file: class GreetingController < ApplicationController def greeting end end Then put in my
2010 Apr 09
3
"We're sorry, but something went wrong"
can anyone help with this??? /!\ FAILSAFE /!\ Thu Apr 08 16:58:27 -0700 2010 Status: 500 Internal Server Error unknown error C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `initialize'' C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlopen'' C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlload'' C:/Ruby/lib/ruby/1.8/dl/import.rb:27:in `each''
2010 Mar 12
7
"We're sorry, but something went wrong." from RoR app
Hi All, "We''re sorry, but something went wrong." is the message I got when I started up an RoR app in the environment: Rails 2.3.5 Ruby 1.8.6 WinXP-Pro/SP3 Firefox 3.6 MySQL 5.0.37-community-nt Mongrel The app under development was working fine until I (stupidly) thought I needed to upgrade MySQL to 5.1.44. I took the precaution of MySQL-dumping the development db before
2008 May 18
9
When should you restart a ruby server?
Hello everyone, While walking through AWDWR, Task D: Add a Dash of AJAX, I was initially unable to let the AJAX magic work. Hitting the Add to Cart button doesn''t yield to any output on its own; I had to manually refresh the pages to witness the change. But when I tried to restart the ruby server, and load the application again, everything worked fine. Any explanations to behavior
2008 Mar 04
2
Why would ActiveRecord connect to Postgres as root?
My databases.yml makes no mention of root and in my dev environment everything works fine, however following a deployment with Capistrano about an hour ago, I get the following error: PGError in HomeController#index FATAL: role "root" does not exist /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/postgresql_adapter.rb:713:in `connect''
2006 Apr 03
12
scgi?? do i need it for ruby?
This might be obvious to everyone but it is something that i haven''t been able to find an answer to. Do I need to have either scgi/fastcgi/cgi running on either lighttpd/apache for ruby scripts to work? If yes, why? I have installed the scgi server and i can get the service to run, i have also installed the following mod_fastcgi/2.4.2 mod_ruby/1.2.4 Ruby/1.8.2(2004-12-25) mod_scgi,
2008 Feb 01
1
Rails routing and active scaffold fight to the death
Just kidding, it''s not as bad as it seems. Right now I don''t have much in my route.rb, and I''m getting this in my console: Processing ApplicationController#index (for 127.0.0.1 at 2008-02-01 14:54:00) [GET] [2008-02-01 14:54:00] (552) INFO Session ID: a8eeb58764d872bbd1fdb337636e68e7 [2008-02-01 14:54:00] (552) INFO Parameters: {} [2008-02-01 14:54:00] (552)
2012 Jan 05
4
mySQL: ERROR 1045: Access denied for user 'root'@'localhost' (using password: NO)
Hello, I am using InstantRails 2.0 on windows. When building an app,I get this error when hit the browser(Action ControllerException caught): Access denied for user ''root''@''localhost'' (using password: NO) ----------------------------------------------------------------------------------------------- The database.yml file is configured like this: # MySQL.
2006 Jan 10
5
Oracle 10g Express - generate scaffold gives error
Hello, I have Oracle XE installed. I have a table USERS. When I try to generate a scaffold it gives me this error. I tried also with Mysql and it worked. E:\radrails\projects\MPS>ruby script\generate scaffold user exists app/controllers/ exists app/helpers/ create app/views/user exists test/functional/ dependency model exists app/models/ exists
2006 Mar 08
6
GD error...
Hi! I''m new in ruby/rails programming and i have a small problem. I have installed InstantRails 1.0 (for Ruby/Rails/Mysql/Apache envs) and I''m trying to make a small app working. I''m using auth_generator for making a login page/users admin pages... and I have a problem when trying to CHANGE the avatar for the user. I have the following error: MissingSourceFile
2007 Aug 19
3
fastcgi issue on production
I just deployed my rails app to my production server. It''s all working locally, but when I switched it over to the production server (at dreamhost) I get this error: # Logfile created on Sun Aug 19 15:22:48 -0700 2007 by logger.rb/ 1.5.2.9 [19/Aug/2007:15:22:48 :: 1841] starting [19/Aug/2007:15:22:48 :: 1841] Dispatcher failed to catch: You have a nil object when you didn''t
2006 Jul 02
5
"the number of parameters does not match the number of substitutions" error
All of a sudden, I''m getting this error: 1) Error: test_index(AccountControllerTest): RuntimeError: The number of parameters does not match the number of substitutions. /home/joe/projects/tanga/trunk/config/../vendor/rails/actionpack/lib/action_controller/assertions.rb:92:in `assert_redirected_to''
2006 Feb 09
2
postgres connection problems
Hello, I''m a newbie to rails and I am trying to do the Demo in the November Issue of Linux Journal. Things go fine go fine until I try to connect to my Postgres database (ver 8.1). At this point I get the following error message ---- RoR error and trace back ---- PGError in Admin#index could not connect to server: Permission denied Is the server running on host "localhost"
2006 Jul 24
1
All functional tests fail with RoutingError
All, I''m using InstantRails 1.0 on Windows XP and all my functional (controller) tests fail with ActionController::RoutingError, although the actions work OK through a web server/browser. Here''s an example of an error: 1) Error: test_create(AdminControllerTest): ActionController::RoutingError: No url can be generated for the hash {:controlle r=>"admin",