similar to: Ruby + MySql

Displaying 20 results from an estimated 40000 matches similar to: "Ruby + MySql"

2006 Jun 06
4
Rails keeps adding the letter s to the MySQL tablename.
I followed this tutorial for Ruby on Rails... http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=1 Everything went fine. I created the DB in MySQL and tested the recipe/new and recipe/list functions, and all went smooth. Now I''m trying to use Ruby on Rails to track software licenses here at work and I keep running into this strange problem. I am setting up the DB,
2006 May 15
3
Mysql::Error in RecipeController#new
Hi, I''m doing the following tutorial :http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=3 but when I''m trying to access the database I get the following error #28000Access denied for user ''root''@''localhost'' (using password: NO) That''s strange because the database.yml file is defined with a password : development:
2006 Mar 22
2
n00b question
Total Ruby N00b here with a question about the Hibbs OnLamp tutorial. I''m trying to hook up to my cookbook database and I''m getting: ActiveRecord::StatementInvalid in Recipe#index Mysql::Error: #42S02Table ''cookbook.recipes'' doesn''t exist: SELECT COUNT(*) FROM recipes RAILS_ROOT: ./script/../config/.. My thoughts: I think I''m not actually
2009 May 26
3
ruby and MySql
Hi there - new to RoR but very excited about it indeed - I have just manged to install everything. However, when I browse to http://localhost:3000/ then click the "About your application’s environment" - from the console I get : Status: 500 Internal Server Error no such file to load -- mysql Perhaps someone can tell from my configuration what is wrong ??? What I may be missing ??
2006 Jul 30
8
Method_missing from Ruby for Rails book
I''m having a problem getting this example from the book to work: class Cookbook attr_accessor :title, :author def initialize @recipes = [] end def method_missing(m, *args, &block) @recipes.send(m, *args, &block) end end cb = Cookbook.new cb << recipe_for_cake cb << recipe_for_chicken beef_dishes = cb.find_all {|recipes| recipe.main_ingredient ==
2005 Mar 07
0
Routing error follow-up
So, maybe I''m asking a stupid question, but if someone could point me in the right direction, I''d be eternally grateful. First, here''s what I have installed: $ ruby -v ruby 1.8.2 (2004-08-24) [i386-linux] $ gem list *** LOCAL GEMS *** actionmailer (0.7.1) Service layer for easy email delivery and testing. actionpack (1.5.1) Web-flow and rendering framework
2006 Mar 29
3
socket for mysql
I have mysql running on a different machine. I''ve editted database.yml, here''s the entry development: adapter: mysql database: cookbook username: root password: mypassword host: posta.rmasonfamily.info test: adapter: mysql database: cookbook username: root password: mypassword host: posta.rmasonfamily.info production: adapter: mysql database: cookbook
2006 Apr 23
1
rake db:migrate error: uninitialized constant mysql
Hello, When I run: rake db:migrate , I get the "uninitialized constant mysql" error. I issue the command inside the root of the application InPlaceEditing, a recipe from Chad Fowler''s Rails Recipes. The InPlaceEditing application is inside the directory: c:\instantrails\rails_apps\InPlaceEditing I can run the InstantRails Cookbook tutorial, no problem, so MySql itself is
2006 May 07
6
Unable to get past Tutorial 1 in RubyOnRails
Unable to get past Tutorial 1 in RubyOnRails On 29 April 2006 I met some one in a Microsoft sponsored developers? community gahering. I was told that ruby on rails is a free software, easy to use, and in no time will have my mind blown with all the wonderful prospects and possibilities. After almost a week, I am still unable to get past tutorial 1 and still unable to make any tutorials work
2007 Sep 27
5
New R website: R-Cookbook.com
R Community, I've put together a website that I thought this mailing list might be interested in: http://www.r-cookbook.com It's a (free) community-driven content management system for R "recipes", or working examples. Some of the features of the site are code highlighting, recipe ratings, recipe comments, personal "recipe boxes" to save your favorite
2011 Dec 10
2
Couldn't find database client: mysql, mysql5, mysql.exe, mysql5.exe. Check your $PATH and try again.
Greetings, I am trying to get MySQL to run with Rails, but when I try to get it to run using "rails dbconsole" I get this error: C:\IS410\Programs\sqltest3>rails dbconsole Couldn''t find database client: mysql, mysql5, mysql.exe, mysql5.exe. Check your $PATH and try again. I have MySQL installed, along with the MySQL driver. I read alot of posts in forums saying it might
2006 Jan 24
1
Newbie: Cookbook Application problem with MYSQL
Hi everybody, I''ve been reading lot of material about Ruby on Rails, and it looks like really rocks. I''ve downloaded the one-click version for Windows and started to build the example cookbook app, found in: http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=1 Everything looks good, but when I''m trying to create a new Recipe
2005 Mar 07
2
0.10.1 Upgrade problems
I just did an upgrade to Rails 0.10.1. It seems to have broken my app. I get this error (nothing works): ActionController::RoutingError (No route for path: ""): /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.5.1/lib/action_controller/routing.rb:258:in `recognize!'' /usr/local/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/dispatcher.rb:32:in `dispatch''
2006 Mar 30
2
help : No database specified. Missing argument: database.
Hi, I''m new to Ruby programming. I''m wnt thru the example by curt in onlamp and was stuck up in the midst of configuration. I''m getting the "No database specified. Missing argument: database." error when i tried creating a table recipe in cookbook db . My database.yml contains the following entries Development: adapter:mysql host:127.0.0.1
2007 Mar 18
8
no route found to match "/cookbook/recipe/list" with {:method=>:get}
Hi, I ve just spent about three hours trying to figure this out, so any help would be appreciated. I ve followed these steps: 1. Downloaded Instant Rails 2. Unzipped it 3. Ran "InstantRails.exe" to configure it. (path is c:\InstantRails) 4. Went to the "Manage Rails Applications" area and chose "cookbook" app. 5. Clicked on "Start with Mongrel" 6. Mongrel
2006 Jul 09
8
Can the has_many create() method return an ID?
Hi all, I have a has_many relationship, Cookbook :has_many Recipes If I want to create a new recipe in my cookbook I do: cookbook.recipes.create(data) It would be nice if I could then easily get the id of the new recipe, but the create() method doesn''t seem to return anything. Any ideas how? Thanks in advance! Cameron -- Posted via http://www.ruby-forum.com/.
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 18
2
categories/recipes & books/descriptions - has_many vs has_one => id question
People, In the cookbook eg, categories has_many recipes but in a book eg, book has_one description - doesn''t that mean that the id of the description should be the same as the id of the book (instead of having it''s own "description_id" in the book table? Thanks, Phil. -- Philip Rhoades Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275) GPO Box 3411 Sydney
2006 May 02
1
Tests just deleted my production Database!!! PLEASE
When you run your functional tests, rake wipes the "test" database clean and recreates it based on what is in the "development" database. Since it appears you are using the same database for both, that would explain why you lost your data. In addition, if you omit the data needed to access the development database you will get an error like you described, because
2006 May 24
6
newbie question: missing template
Hi I''m new to this forum and new to Rails so excuse me if this is a daft question. I''m following the ONLamp.com tuturial and all has been well untill changing the template for the recipes. I have followed the instructions and added this code to the controller: class RecipeController < ApplicationController scaffold :recipe def list @recipes = Recipe.find_all end