Displaying 10 results from an estimated 10 matches for "howtousesqlite".
2006 Feb 24
2
sqlite sets a new model''s id to 0 after a save
Example:
car = Car.new
car.id # is nil
car.save
car.id # is 0
I''m wondering if this is expected behavior, or something wrong with
what I''m doing. If it is not expected behaviour, how do I go about
solving it?
2006 Aug 02
1
unable to "require" installed gems
Hi,
I''ve installed sqlite3 (via the instructions at
http://wiki.rubyonrails.org/rails/pages/HowtoUseSQLite), and all went
well
OSX 10.4.7
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.6.0]
and sqlite3.rb is in
/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib
but I can''t <require ''sqlite3''>
caw$ irb
irb(main):001:0> require ''sqlite3''
LoadError...
2008 Apr 12
12
sqlite3.dll problem
Hi I''m triying to begin developing in ruby on rails, and I''ve instaled
all the components but there is a problem with the file sqlite3.dll.
When I try to execute my first example in my web browser apears an alert
that says sqlite3.dll is not found.
I''m working on windows XP with firefox and the server is WEBrick.
If someone knows how can I resolve the problem please
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/.
2006 Jan 20
1
sqlite3
ok... so I''m trying to get sqlite3 up and running on my app but i keep
hitting a wall when i try to install the gem... I''ve got all the right
bits a pieces installed (i can run sqlite from the console and create
databases and such) but gems keeps telling me that it can access the
ruby header file. but, i can can find this file in spotlight not
problems (and no there is nothing
2006 Jul 09
2
Error using sqlite3
Hello, I''m trying to use sqlite3 and I''ve followed the steps here :
http://wiki.rubyonrails.org/rails/pages/HowtoUseSQLite
However I get the error above (uninitialized constant API) when trying
to run a migration.
I''m under Windows XP, using cygwin, the sqlite3.dll file is on the lib
directory of my rails app (filemon, an utility that reports file access
attempts show me that this file is found and open s...
2006 Feb 17
7
Create and then show
I am attempting to redirect to the show method after creating a new
object. So, for example, once a new post is created the user is
presented with the new post in a show view. The problem is I can''t get
the correct <at> post.id to send to the show method. Rails always
returns 0 for this value.
Here''s what I have so far:
class ContentController < ApplicationController
2008 Apr 08
7
SQLite3 error
I am trying to install SQLite3 on my Rails app but I keep getting this
error:
./sqlite3.dll: 127: The specified procedure could not be found. -
Init_sqlite3 (LoadError)
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2006 May 10
10
Can''t Install Rails with Ruby Gem Dependencies, OS X
Hello Community:
I''m a brand new user of Ruby on Rails, and am having a great deal of
trouble compiling from source. I''m using the tutorial at
http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger
to complete the install.
Readline and Ruby installed just fine, and the Ruby Gems appeared to.
But when I tried to sudo gem install Rails --include-dependencies,
2006 Jul 07
15
Does Berkeley DB and Rails seem like a good match?
I''ve been reading up on Berkeley DB and I''ve been refelcting on the
Rails philosophy and it just seemed to me like the two should go
together hand in glove. Rails seeks to abstract the programer from
squirrely database coding which is great. My only problem is that
you''re still left with a large component, namely the databsase server
(MySQL, PostgreSQL..etc) which