Displaying 20 results from an estimated 10000 matches similar to: "schema_info not updated"
2006 Jun 14
7
CR issue
Hi,
I am using RedCloth (3.0.4).
First using online text2html (http://www.textism.com/tools/textile/) ,
"123
456"
returns <p>123<br />456</p>
But by code:
<code>
require ''RedCloth''
puts RedCloth.new("123\n456").to_html
</code>
I got:
<p>123
456</p>
CR is not taken in consideration. Is there any parameter I am
2006 Jun 11
6
page.update_html not executed
Hi,
when doing:
render :update do |page|
page.replace_html ''suggested_contractors'', :partial =>
''contractors''
page.visual_effect :highlight, ''suggested_contractors''
end
I got js as output, it is not executed, return html *contains*:
try { Element.update("suggested_contractors", "
\n 12345678910\n
\n
2006 Jun 29
3
Questions on ActiveRecord implementation
Hi,
I got several questions on AR adapters implementation:
1. For SqlServer/Oracle, SQL queries are built by concatenation, and
there is no use of parameters. Especially for Oracle, this is very bad,
no optimization can be done. Is there a reason for that? Does anybody
plan to fix that?
2. When updating a model, _all_ columns are updated. Why not only the
diff is updated? Using blob/cblob, it
2006 Jul 18
2
RubyOnRails certification
Hi,
I am just wondering if there are already some ROR certifications, and if
yes, what is the rails core opinion?
Thank you
Jean-Etienne - http://www.novAgora.hu
--
Posted via http://www.ruby-forum.com/.
2006 Jun 16
6
rendering mathematical equations
Any recommendations on how I can get mathematical equations into my
resulting html? (Besides using x^2^ type markup.)
I figure I could parse out equation text from my main text before
RedCloth ever sees it... and then maybe create png''s somehow from it,
putting the links to them back into the main text before handing it
over to RC. But I don''t know of a util that will generate
2006 Jun 12
2
date_select() in collection
Hi,
I am doing the following:
<% obj.contracts.each do |@contract| -%>
...
<%= hidden_field("contract[]", :contractor_id, :index =>
@contract.contractor.id) %>
<%= date_select("contract[]", :starting_on, :index =>
@contract.contractor.id) %>
...
<% end -%>
Here are the request parameters:
{"commit"=>"Save",
2006 Aug 04
2
Generating RTF documents?
Hi,
I need to implement some RTF export for a customer. According to some
"templates", i generate RTF documents, filling data coming from models.
It''s pretty much like a mailmerge, but in *nix/ruby world.
Also, customer would like (in the future) to upload himself the
templates, so he can modify them by his own.
Can anyone advice me on an elegant solution?
Thank you,
2006 Mar 31
3
undefined method `<=>'' for :id:Symbol
Upgrading to 0.9.0, I have the following error. Anybody?
c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.9.0/lib/ferret/index/term.rb:35:in
`<=>'': undefined method `<=>'' for :id:Symbol
(NoMethodError)
from
c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.9.0/lib/ferret/index/term_infos_io.rb:263:in
`get_index_offset''
from
2006 Aug 06
2
TextMate + Rails
Hi,
Could anyone point to some TextMate resources ? I found a few bundles,
but they were all corrupted...
JEtienne
--
Posted via http://www.ruby-forum.com/.
2006 Jun 30
3
AR: Model on several tables
Hi,
Is it possible to have a Model where columns are not in one table, but
two tables?
Jean-Etienne
--
Posted via http://www.ruby-forum.com/.
2006 Apr 25
3
Migrating to 0.9.1
After migrating to 0.9.1, I got:
usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
`const_missing'': uninitialized constant TokenFilter (NameError)
Here is a snapshot of my code:
...
require ''ferret''
class MyFilter < Analysis::TokenFilter
...
I works fine on my dev machine, but not a production server (shared
host).
Any
2006 Jul 20
11
3 columns
Hi all,
Not really sure what to put in the title so hope people still open this!
What I want to do is produce something like this
Col1 Col2 Col3
data1 data2 data3
data4 data5 data6
data7 data8 data9
data.. data.. data..
data.. data.. data..
data-n data-n+1 data-n+2
I can get the data back from my db
2007 May 25
7
Storing large BLOBs in the database with ActiveRecord
I have a model called Product with an attribute called file of
type :binary (DB BLOB). If I do product.save (where product is an
instance of my Product model), here is SQL statement that the mysql
adapter for Ruby will do:
INSERT INTO `PRODUCT` COLUMNS(NAME, PRICE, FILE) VALUES(''PROD1'',
4.56, X''00DEF033423023220'')
All is hunky dory for as long as my BLOB is
2005 Nov 07
5
Switchtower deployment
Hi,
Has anyone experiences using SwitchTower (Windows) in a shared hosting
environment (Textdrive)? I already patched the SwitchTower rake tasks (I
don''t know if someone is interested on it), but i still experience some
problems (not in the sudoers list, ...).
Thank you for answer (and thank you to the textdrive guys, i never had a
such fast support!)
--
Jean-Etienne Durand
2007 Sep 26
0
Fwd: error with schema_info when doing multiple migrations
Posting to merb list in case it is a merb problem. (?!??)
The error still happens with sequel 0.2.1.
---------- Forwarded message ----------
From: Kevin Williams <kevwil at gmail.com>
Date: Sep 23, 2007 10:26 AM
Subject: error with schema_info when doing multiple migrations
To: sequel-talk at googlegroups.com
I tried to post an issue to the project site but it kept giving me 500
server
2006 Mar 08
3
migrations schema_info table, Rails Recipes Bug?
I have the rails recipes book and i was going through the migrations
recipe. Everything seemed to work except for the last part in trying to do
a rake migrate with a migration file version 1 and the schema_info version
set to 0. Without the force attribute, the rake migration fails, as
expected.
So the recipe says to run this:
ruby script/runner
2006 Aug 08
6
rake migrate the first time - uses more than schema_info?
All,
I have two migration files, file 1 and file 2.
For reasons that I don''t want to go into unless I must, I want to only
run file 2 on my production database (file 1 contains a bunch of table
creation stuff for already existing tables).
I figured if I created a schema_info table and set the version in it to
1, then I could just run rake db:migrate RAILS_ENV=production and just
2007 May 21
0
Migrations : change schema_info table name ?
Hi,
my company uses only 1 database for all the developments, so it is a big
problem for using migrations in Rails because of the schema_info table.
How can I solve this problem? Is there a way to change the schema_info
table name?
Thanks.
Nicolas.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2008 Apr 23
2
Table Unknown - SCHEMA_INFO
Hi all,
Sorry for another newbie question!
I''ve got a legacy firebird database which I wish to use, and thanks to
help from this group I''ve used Dr Nic''s Magic Models to get RoR
talking to the database.
However, I wish to create a new table ("reports") in this database,
and so generated the scaffold such that the file "db/migrate/
2007 May 28
2
out-cheat validates_uniqueness_of
before_save :strip_strings
validates_uniqueness_of :username
validates_presence_of :username
private
def strip_strings
self.username = username.gsub!(" ","")
end
example:
username = " gissmoh-/upiLifMog2ELgA04lAiVw@public.gmane.org "
becomes gissmoh-/upiLifMog2ELgA04lAiVw@public.gmane.org
and is stored in the