Hello,
i try to get a shared login for my two Rails applications. I read much
about this topic, but dont know how to do this. I need a tutorial or a
good understandable which explain this.
At the time i have two Rails applications on one Server and they use the
same DB (this means also the same
Hello,
I want to change some tablenames on my DB, but I dont want to change the
modelnames in my RailsApp. So I write down this line of code in the
model with the changed table: set_table_name newName . Also I
changed in the migrationfiles the tablenames and renamed the fixtures.
But if I now
My old tablename was products and sizes. Now it's fos_products and
fos_sizes.
I write set_table_name fos_products and set_table_name fos_sizesin
my products and sizes model.
After that I renamed my fixture files from products.yml and sizes.yml to
fos_products.yml and fos_sizes.yml and I renamed
#schema.rb
ActiveRecord::Schema.define(:version = 20101124114645) do
...
create_table fos_products, :force = true do |t|
t.string name
t.decimal price, :precision = 8, :scale = 2
t.string description
t.integer type_id
t.integer size_id
t.integer
I do this: I suggest reverting to the manual method for
setting size_id, by providing a number for it and for the entries in
the sizes table.
Its not nice but it works^^
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
5 matches
Mail list logo