Displaying 20 results from an estimated 80000 matches similar to: "yaml for mysql"
2008 Nov 30
11
rake aborted! undefined method `each' for #<Mysql:
I''m struggling with several problems getting my first time ruby on rails
environment running. I''m now stuck on this problem too.
rake db:migrate generates the following error. This one is on a vista
machine. Anyone seen this before. Any thoughts or advice?
Reading about Ruby on Rails has really got me excited to give it a try.
But in practice getting to the point that I can
2007 Apr 18
1
YAML serialization
Hi,
something wrong with ActiveRecord or YAML? They don''t put Strings
into Quotes when it serializes. This gave me trouble when I
serialized a String with a double colon (eg. ''key: value''). After AR
unserialized the Value it became a Hash since a String ''key: value''
becomes attribute[:key] => value... :(
Sincerely
Florian
2007 Oct 26
3
Selecting a database from the application itself?
Hi everybody,
I just started thinking about a project and am seeking some help
regarding its design.
The idea would be to create labels (i.e. address labels).I could let
users type the text manually, but I dont think they would appreciate
that when they''ll want to print 5000 addresses.
I can also probably let them import csv files, that should not be a
problem, but playing with those
2007 Apr 06
4
using Ruby as a front end for a trading system
Hi All,
needed some direction for a newbie to RoR. I have done work in Java,
.net and perl, and really prefer perl and java over .net, now we are we
are looking to start building a financial trading application, most of
the team wants to go with .net while I am trying to build the case with
Ruby. Some of our classes have been developed in delphi7. Would I be
able to use RoR on the front end of
2008 Sep 13
4
Setting up RoR with Postgresql ---heeellpp!
Hi there, I''ve been trying for a few hours now to get RoR and postgresql
talking - but I''m very confused about what''s going on (I''m running
windows btw).
I haven''t created a database in postgresql (I''m assuming that RoR will
do that?)
my database.yml looks like this:
production:
adapter: ruby-postgres
database: rails_production
2007 Jun 21
11
one-to-one, compound primary key, naming conventions
My understanding is that, given tables Alpha and Beta that the table
which holds the 1-to-1 relation will be called Alpha_Beta (or is it
alpha_beta?). So far so good.
alpha_beta will have, lets say, two fields: alpha_id and beta_id. Seems
that it''d be a good idea for those two fields to form a compound primary
key, ensuring there are no duplicates.
However, RoR doesn''t
2007 Apr 17
2
Rake aborted - syntax error, unexpected $end, expecting kEND
I can''t create tables via rake db:migrate without encountering this
error:
rake aborted!
./db/migrate//001_create_users_table.rb:11: syntax error, unexpected
$end, expecting kEND
The 001_create_users_table.rb file contains:
class CreateUsersTable < ActiveRecord::Migration
def self.up
create_table "users" do |table|
end
def self.down
end
end
I''ve
2007 May 23
1
Automated operations on a database
Hello, i have a question about a problem i can''t figure out how to
solve.
I have a standard RoR application made with the classic MVC model, and I
need to (for example) edit a value in a table with a time-based rule.
EX:
starting table:
user | money
----------------
|
john | 500
after 1 minute:
user | money
----------------
|
john | 510
etc..
2009 Aug 31
3
Migration - wrong SQL statement is created
Hi,
I am doing my first steps with RoR and I have the following problem:
I execute my migration file with the following content on a
MySQL-database via Rake:
<code>
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |t|
t.integer :id
t.string :username, :size => 100
t.string :password, :size => 100
t.string :email, :size
2006 Dec 15
6
Newbie: Invalid number dealing with Identity columns in Oracle
Hi all,
I wonder how can I solve in RoR the problem of accessing a simple table
because the URL
http://localhost:3000/customers/show/2.0
is raising an Oracle error OCIError: ORA-01722: invalid number.
The reason of this error is because the SELECT statement generated by
ActiveRecord tries to invoke the id column as a VARCHAR :
"... FROM customers WHERE customers.id =
2009 Feb 05
1
Need the activerecord-sqlserver-adapter but...
Hi... I am new to RoR development, and Web development in general (but
have about 25 years of IT/software experience - just not in the Web
area)... I have a really good RoR 2.X book that I have read and reread a
few times and starting to try to apply what I read... Have a Web app
that I need to write at work, and prove to folks that RoR is THE_WAY,
despite their ASP .NET protests otherwise...
So,
2008 Feb 19
20
Ruby on Rails and MS Access
How do I connect an existing or new Access database with Ruby on
Rails?
I am new to Ruby on Rails and a tutorial I am going through mentions
using MySQL but I don''t have MySQL and only work with MS Access.
Is MySQL available for free on the web? Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2007 Aug 30
2
RoR - Some Questions Before Starting
Hello everyone,
For some time I was studying Ruby on Rails, Active Record ideology and
other thing related with RoR right now I still know a lot more about
PHP than RoR. I am almost ready to start writing websites using RoR
and get more experience. But I still have some questions before
starting and I can''t start without answers.
If you could simply answer some of them, would be great.
2008 Jan 29
6
Weird DB Session error, "Mysql::Error: Lost connection to MySQL server during query"
I''ve discovered something really weird in rails 1.2.3 (It could be
fixed in 2.0? but I don''t know).
Recently I started getting the error "Mysql::Error: Lost connection to
MySQL server during query" in my application. It seemed like it had
popped up almost without relation to anything. There was a page in the
RoR wiki with possible solutions but none of them had worked
2008 Feb 26
5
Rails 2.0.2 MySQL 'year' datatype missing from ActiveRecord?
Hi all,
This is my first post to the forum, and I''ll point out right away that
I''m a noob to everything, Ruby, Rails, MySQL, etc., so I expect that I''m
wrong here, but is the ''year'' datatype missing from ActiveRecord in
2.0.2? According to my MySQL 5.0 reference manual, ''year'' is a datatype,
but when I try to run a migration that has
2007 Sep 27
2
How specify size of string column in a migration
I am new to RoR. How do you specify the size of a string column in a
migration? The examples I''ve see are all of the form:
t.column :name, string
which produces a VARCHAR(255). I want a VARCHAR(40).
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to
2006 Jun 07
1
has_many, through, want to store email in mysql
Hi,
I''m still a new with ROR, but it''s really cool :) I just have this
problem with a project of mine.
I want to store email in a database. I already wrote a simple import
script, that works, so that''s not a problem. Showing the email
(efficiently) in a ROR site is.
These tables are in the database:
emails
id
email_id (foreign key -> emails.id)
seq
2008 Jul 04
4
Libs directory
Hello,
I had an application on Rails 1.2 or 1.1 (don''t remember). Now I have
updated it to 2.1.
I had a migrations_helper.rb in the Libs directory which defined
foreign_key and drop_foreign_key methods. But now migrate task doesn''t
find them. Have I to include this directory somewhere with Rails 2.1?
Doesn''t it work as always?
Could I use another thing to declare
2009 May 24
3
index.erb vs rhtml
I am a total Ruby/RoR n00b having just started reading the ''Ruby on
Rails Bible'' book two days ago. I''ve been trying to work out through
the introductory ''Your first ruby on rails application'' section, but
I''ve run into problems already!
The book goes on about creating the view templates and naming them
with the *.html.erb extension, but I get
2007 Feb 26
24
Ruby/rails port of Cocoon/hibernate
Hi,
I''m currently running an apache/jboss cocoon/flow/hibernate/ajax
paypal (directpayment) project and am looking into the possibility of
porting it across to ruby/rails. For that reason I would like to know
the following:
1. Can I call my java classes or would I be looking at a complete
rewrite in ruby?
2. How effective is ruby in terms of seperation of concerns regarding
design from