Displaying 20 results from an estimated 2000 matches similar to: "Error while generating scaffold"
2006 Jul 09
1
connecting to sqlite3
I''m having problems connecting to sqlite3.
Here is what my config file looks like:
development:
adapter: sqlite3
dbfile: /tmp/db/test.db
test:
adapter: sqlite3
dbfile: /tmp/db/test.db
Running migrations causes this error to be thrown:
g4:~/sites/rails/test smtlaissezfaire$ rake migrate
(in /Users/smtlaissezfaire/Sites/rails/test)
rake aborted!
no such file to load -- sqlite3
2005 Jun 29
3
trouble with active record and sqlite
I am getting an error that I can''t figure out. I have a class called
Test with 3 fields, id, x, and y. When I do Test.new(''x''=>1,
''y''=>2).save, I get an error saying that id (my ''not null primary
key'') can''t be null. But isn''t active record supposed to deal with
setting that for me? Here''s the code
2006 Feb 09
9
RMagick on OS X - HOW
Hello all.
I''m a seasoned system administrator and have no fear of building
source packages on a variety of platforms, but RMagick has, until
recently, evaded all of my attempts to building it on my PowerBook.
Someone else just mentioned that they had trouble with RMagick on
OS X (Intel, don''t really know if my advice will help) so I
decided to post a HOWTO to the list.
I
2006 Jun 09
8
Installation on OSX...
Hi,
Just got my first Mac. I''m trying to install rails on it, using the
instructions in the rails wiki:
http://wiki.rubyonrails.com/rails/pages/HowtoInstallOnOSXTigerUsingDarwinPorts
I go to install mysql, and the version of mysql supported by
DarwinPorts appears to be 4.1.18. But all the sites appear to only
have 4.1.19 or 4.1.20. So it looks like DarwinPorts is over a month
out
2007 Nov 18
3
mongrel_cluster on OS X 10.5 Leopard
So, Leopard server has been great, most everything I need is here.
Thanks to a nice example here:
http://www.cyberarmy.net/library/article/1722/ I was even able to sort
out using Mongrel with Apache 2. All works out of the box, except
mongrel_cluster. The gem just won''t install. I could really use some
guidance here. I did try the darwinports mongrel_cluster install from
here:
2007 May 04
2
Editing the references
Hi all,
I''ve just noticed that two wiki users edited the wiki reference
documents. One of these edits (to the function reference) was a good
edit but would have been overwritten if I did not find it. The other
edit (s/darwinports/macports/g) made the documentation incorrect,
since the provider actually is called darwinports (even if that
itself is a bug).
I haven''t
2006 Mar 15
7
rails on OS X 10.3.9 not working
Hello,
I''ve installed Ruby 1.8.4 via Darwinports, installed gem 0.8.11 too and
then installed Rails via gem. I''m using OS X 10.3.9.
When I now type rails in the terminal, the following lines appear:
# rails
/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/
active_support/values/time_zone.rb:12: undefined method `attr_reamer''
for TimeZone:Class
2016 Oct 20
2
queue_log/cel sqlite
On Thu, Oct 20, 2016 at 4:50 AM, marek cervenka <cervajs2 at gmail.com> wrote:
> i tested this
>
> # cat /etc/asterisk/extconfig.conf
> [settings]
> queue_log => sqlite3,cdrDb
>
> # cat /etc/asterisk/res_config_sqlite3.conf
> [cdrDb]
> dbfile = /var/lib/asterisk/realtime.sqlite3
>
> sqlite3 /var/lib/asterisk/realtime.sqlite3
>
> CREATE TABLE
2006 Nov 07
3
wine install mac os x (x86)
Hello,
I have compiled and installed (almost) wine 0.9.24 within Mac OS X tiger 4.8
with X11 etc installed. The wine configure and compile steps complete
without a warning/hitch etc.
However, when I run wine <prog> I receive the following warning message --
Wine cannot find the FreeType font library. To enable Wine to
use True Type fonts please install a version of FreeType greater
2006 Jun 21
2
mongrel_rails restart not working
Hi,
On os x.3.9, with ruby 1.8.4 installed through darwinports and mongrel
through gems,
everything works until I restart:
mongrel_rails restart
adds the logs:
** USR2 signal received.
** Restarting with arguments: ruby
/opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13/bin/mongrel_rails
start -p 3001 -d
/opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13/bin/mongrel_rails:134:
in
2004 Oct 19
9
News for OS X Users
Sorry things have gone silent on the release front, but I have some good
news: I''ve gotten wxruby-swig to build as a OS X framework. This has a
couple of ramifications
1) wxruby for the Mac will finally exactly like its Linux and PC
counterparts, menu bar and all.
2) Bundling wxruby applications becomes a lot easier.
3) The next binary installer should be able to support darwinports,
2006 Jul 12
1
HOWTO: Install RMagick on OS X
Hello all fellow Mac OS X Railers.
I''m just setting up a new MacBook from scratch.
Everything has gone very easily, so I decide to attempt
to install RMagick from scratch once again, something
that I''ve wrestled with in the past, finally punting and
going with a DarwinPorts ImageMagick install then direct
gem install of RMagick.
Well, I had no problems and have achieved
2006 Jan 18
2
Migration?
I just installed ruby, lighttpd, and mysql from darwinports on me
laptop in lieu of the Apple version of ruby. Now when I fire up my
rails application, it''s not running lighttpd anymore -- it''s running
webrick. It also exits immediately. MySQL is running, the database
and tables are restored from the backup. What step am I missing?
Thanks for the help!
Cheers,
Hasan
2006 Apr 21
9
Capistrano, OS X
If you installed your copy of ruby via DarwinPorts, the hashbang lines
at the top of your dispatch.* scripts says "#!/opt/local/bin/ruby". This
is a problem, if you''re deployin via Capistrano to a host with a
different path to ruby (which would be practially all of them:-)
Here''s a fix. Add this "fix_hashbangs.rb" script to your script
directory.
2006 May 19
6
rmagick->X11 on MacTel Howto?
I needed to install rmagick/GraphicsMagick on an IntelMac and did so
from Darwinports. Some things work and others don''t work, like
rendering fonts which needs X11 fonts and X server. The rmagick page
at rubyforge points to ..
http://developer.apple.com/opensource/tools/runningx11.html
where X11 link to Apple is broken.
X11User.pkg talked about on the page above no longer exists at
2002 Nov 14
1
R-1.6.1, Mac OS X 10.2.2 build failure
I tried building R-1.6.1 under Mac OS X 10.2.2 and experienced the
following build failure:
<...stuff omitted...>
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -bundle -flat_namespace -undefined suppress -L/usr/local/lib -o
ctest.so ansari.o chisqsim.o d2x2xk.o
2006 Mar 30
13
Trying Agile book, found problem
Pg. 57 of Agile asks you to create a scaffolding by typing in
ruby script/generate scaffold Product Admin
Instead of generating everything, it only gives me
exists app/controllers/
exists app/helpers/
exists app/views/admin
exists test/functional/
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
identical
2006 Feb 08
1
Save only inserts null instead of actual values
Hi,
whenever I try to save my form, rails only enters null values in my
database. I''m using sqlite, I thought that sqlite might be the problem,
but the problem remains when I switched to mysql. Here is my code:
controller:
class CollectionController < ApplicationController
def new
@collection = Collection.new
end
def create
if request.get?
redirect_to :action
2006 Jul 09
1
Tiger OS X darwin ports problem with readline
Hi,
I just edited this page:
http://wiki.rubyonrails.org/rails/pages/DarwinPorts
I thought I''d post something to this mail-list in hopes of an answer..
I''m running Tiger.
On my Mac, I cannot get past installation of readline:
mac:~ mac$ sudo port install readline
Password:
---> Fetching readline
---> Attempting to fetch readline51-001 from
2008 Oct 08
11
Using image_tag and send_data
I am using image_tag to load an image that I''ve saved to the database
(using attachment_fu if you''re curious but that''s probably not
relevant here):
VIEW
<%= image_tag ''/photo/get_image/5'' %>
CONTROLLER
def get_image
@photo=Photo.find(params[:id])
send_data(DbFile.find(@photo.db_file_id).data,
:type =>