Displaying 5 results from an estimated 5 matches for "bind_param".
2009 Dec 29
1
help with WebBrick
Anyone knows how to fix that?
[...]
/set.rb:202: [BUG] Segmentation fault
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux]
Aborted
[...]
and server shut down :(
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To
2005 Jun 10
1
Convert extensions.conf INTO MySQL script
I swear I read somewhere on one of the MANY pages that there is a script out
there that can read the extensions.conf file and create the MySQL DB records
on the fly. Anyone know where I look for such a thing?
Sure speeds up migration!
Chris Coulthurst
chris@shuksan.com
2005 Dec 07
3
ActiveRecord::Observer problem
Hi all,
I have a problem with an observer. I have a simple observer...
class ActivityObserver < ActiveRecord::Observer
observe Customer
def after_create(model)
bind_params(model)
@al.action = "create"
@al.save
logger "#{model.id} : created"
end
private
def bind_params(model)
@al = ActivityLog.new
@al.user_id = User.current.id
@al.customer_id = User.current.customer_id
@al.object_type = model.class.name
@al.obj...
2010 Nov 30
0
simple SQLITE3 error!!??library routine called out of sequence
...bh=DBI.connect("DBI:SQLite3:barron.db")
sth=dbh.prepare("INSERT INTO WORDS VALUES(?,?,?)")
3.times{
sth.execute("1","2","3")
}
and it gives me error :
/Users/tsdeng/.rvm/gems/ruby-1.8.7-p302/gems/sqlite3-ruby-1.3.1/lib/sqlite3/statement.rb:41:in `bind_param'': library routine called out of sequence (SQLite3::MisuseException)
from /Users/tsdeng/.rvm/gems/ruby-1.8.7-p302/gems/sqlite3-ruby-1.3.1/lib/sqlite3/statement.rb:41:in `bind_params''
from /Users/tsdeng/.rvm/gems/ruby-1.8.7-p302/gems/sqlite3-ruby-1.3.1/lib/sqlite3/statement.rb:37:...
2010 Jul 20
20
render :js => "alert('Test !')"
Hi Folks,
I use render :js => "alert(''Test !'')" in my modele, but instead of
having the alert displayed, the browser try to donload a file containing
this string : <<render :js => "alert(''Test !'')">>. Do you know why I the
browser behaves such a way ?
Regards
--
Posted via http://www.ruby-forum.com/.
--
You received